class foo { friend bool operator < ( bool left, const foo& right ); friend int operator ^ ( int left, const foo& right ); }; bool operator < ( bool left, const foo& right ) { return left; } int operator ^ ( int left, const foo& right ) { return left; } int main() { int O_o = 0, _ = 0, baka = 0; foo o_O, neko; bool XD = O_o >_< o_O; int nya = baka ^_^ neko; return 0; } |