mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-04 02:31:36 +00:00
* feat(cpp): resolve overloaded operator calls * fix(cpp): tighten overloaded operator resolution --------- Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
26 lines
348 B
C++
26 lines
348 B
C++
#include "lib.h"
|
|
|
|
namespace std {
|
|
ostream cout;
|
|
}
|
|
|
|
std::ostream& operator<<(std::ostream& os, const Point& p) {
|
|
return os;
|
|
}
|
|
|
|
void runMember(Point a, Point b) {
|
|
Point c = a + b;
|
|
}
|
|
|
|
void runFree(Point p) {
|
|
std::cout << p;
|
|
}
|
|
|
|
void runBuiltin() {
|
|
int x = 1 + 2;
|
|
}
|
|
|
|
void runBuiltinVariables(int a, int b) {
|
|
int x = a + b;
|
|
int y = a << b;
|
|
}
|