Created
November 1, 2014 20:44
-
-
Save ga2arch/02ad0a056fc77eaa37c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct some_tag {} op; | |
struct op_temporary { int lhs; }; | |
op_temporary operator <(int lhs, some_tag rhs) { | |
op_temporary m; | |
m.lhs = lhs; | |
return m; | |
} | |
int operator >(op_temporary lhs, int rhs) { | |
return lhs.lhs + rhs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment