Last active
August 29, 2015 13:56
-
-
Save kalman5/9031779 to your computer and use it in GitHub Desktop.
Possible reference to temporary
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 CrashDestination { | |
public: | |
CrashDestination(const std::string& aString) | |
: theString(aString) | |
{} | |
void print() const { std::cout << theString << std::endl; } | |
private: | |
const std::string& theString; | |
}; | |
CrashDestination cd("TEMPORARY_STRING"); | |
cd.print(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment