Skip to content

Instantly share code, notes, and snippets.

@mattn
Created June 30, 2014 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/bf1e56aa832c031e5df6 to your computer and use it in GitHub Desktop.
Save mattn/bf1e56aa832c031e5df6 to your computer and use it in GitHub Desktop.
#include <cstdio>
#include <math.h>
class C {
public:
C() {}
C(double) { printf("hello world\n"); }
void fuck() {};
};
int main(int argc, char** argv)
{
C(NAN);
NAN.fuck();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment