Skip to content

Instantly share code, notes, and snippets.

@miselin
Created May 16, 2014 05:57
Show Gist options
  • Save miselin/aa4e5fdaf216b3e3d42c to your computer and use it in GitHub Desktop.
Save miselin/aa4e5fdaf216b3e3d42c to your computer and use it in GitHub Desktop.
#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