#include <iostream>
using namespace std;
struct mystring {
mystring(const char* str) {
cout << "Constructed '" << str << "'" << endl;
}
bool operator==(const mystring& other) const {
cout << "Compared" << endl;
return false;
}
};
int main() {
mystring a("hello");
a == "world";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IG15c3RyaW5nIHsKICAgIG15c3RyaW5nKGNvbnN0IGNoYXIqIHN0cikgewogICAgICAgIGNvdXQgPDwgIkNvbnN0cnVjdGVkICciIDw8IHN0ciA8PCAiJyIgPDwgZW5kbDsKICAgIH0KICAgIGJvb2wgb3BlcmF0b3I9PShjb25zdCBteXN0cmluZyYgb3RoZXIpIGNvbnN0IHsKICAgICAgICBjb3V0IDw8ICJDb21wYXJlZCIgPDwgZW5kbDsKICAgICAgICByZXR1cm4gZmFsc2U7CiAgICB9Cn07CgppbnQgbWFpbigpIHsKCW15c3RyaW5nIGEoImhlbGxvIik7CglhID09ICJ3b3JsZCI7CglyZXR1cm4gMDsKfQ==