Created
June 5, 2018 03:38
-
-
Save zougloub/a6462b72c0b548b291d7e5c4c2d0846a to your computer and use it in GitHub Desktop.
When you have too many warnings in a piece of code and then track down a corruption issue...
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 <cstdio> | |
class C { | |
public: | |
C() { | |
printf("%s this=%p\n", __func__, this); | |
} | |
~C() { | |
printf("%s this=%p\n", __func__, this); | |
} | |
}; | |
C nasty() | |
{ | |
// FTW | |
} | |
int main() { | |
nasty(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment