mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-03 02:21:44 +00:00
* feat(cpp): resolve overloaded operator calls * fix(cpp): tighten overloaded operator resolution --------- Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
23 lines
381 B
C++
23 lines
381 B
C++
#pragma once
|
|
|
|
namespace std {
|
|
class ostream {};
|
|
extern ostream cout;
|
|
}
|
|
|
|
struct Point {
|
|
Point operator+(Point rhs) const {
|
|
return rhs;
|
|
}
|
|
|
|
Point& operator+=(Point rhs) {
|
|
return *this;
|
|
}
|
|
};
|
|
|
|
std::ostream& operator<<(std::ostream& os, const Point& p);
|
|
|
|
void runMember(Point a, Point b);
|
|
void runFree(Point p);
|
|
void runBuiltin();
|
|
void runBuiltinVariables(int a, int b);
|