Last active
January 31, 2018 09:03
-
-
Save fortheday/85897589825909c30e1248f4e2d08d63 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
class CTest { | |
public: | |
~CTest() = default; | |
}; | |
CTest *pTest = nullptr; | |
{ | |
CTest &&rrInt = CTest(); | |
pTest = &rrInt; | |
} // ~CTestwekj() | |
*pTest = *pTest; // DANGLING PTR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment