Created
September 17, 2012 18:40
-
-
Save motonacciu/3738981 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
| std::auto_ptr<int> a( new int ), | |
| b( new int ); | |
| *a = *b = 0; | |
| a = b; | |
| *b; // SEGFAULT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment