Created
May 16, 2014 05:57
-
-
Save miselin/aa4e5fdaf216b3e3d42c 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
#include <stdio.h> | |
class Double { | |
public: | |
int operator , (int x) { | |
return x * 2; | |
} | |
}; | |
int main(int argc, char * argv[]) { | |
Double doubler; | |
printf("%d\n", (doubler, 3)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment