Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct String
- {
- operator int();
- };
- int main()
- {
- String s("Hello");
- if (s) {}
- }
- struct String
- {
- operator String2();
- };
- struct String2
- {
- operator bool();
- };
- int main()
- {
- String s("Hello");
- if (s) {}
- }
Add Comment
Please, Sign In to add comment