#include <iostream>
class Foo
{
public:
int operator+(const Foo& b)
{
return 5;
}
};
int operator+(const Foo& a, const Foo& b)
{
return 6;
}
int main()
{
Foo a, b;
int c{ a + b };
std::wcout << c << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKY2xhc3MgRm9vCnsKcHVibGljOgoJaW50IG9wZXJhdG9yKyhjb25zdCBGb28mIGIpCgl7CgkJcmV0dXJuIDU7Cgl9Cn07CgppbnQgb3BlcmF0b3IrKGNvbnN0IEZvbyYgYSwgY29uc3QgRm9vJiBiKQp7CglyZXR1cm4gNjsKfQoKaW50IG1haW4oKQp7CglGb28gYSwgYjsKCWludCBjeyBhICsgYiB9OwoJc3RkOjp3Y291dCA8PCBjIDw8IHN0ZDo6ZW5kbDsKCXJldHVybiAwOwp9