Created
November 1, 2018 09:52
-
-
Save sanohin/82e703f22f9000ac23e908f95ac7b84c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 <iostream> | |
| class Kek { | |
| public: | |
| Kek() { | |
| Kek::ref = this; | |
| } | |
| static Kek* ref; | |
| }; | |
| Kek* Kek::ref = NULL; | |
| int main() { | |
| Kek* a = new Kek(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment