Skip to content

Instantly share code, notes, and snippets.

@kalman5
Last active August 29, 2015 13:56
Show Gist options
  • Save kalman5/9031943 to your computer and use it in GitHub Desktop.
Save kalman5/9031943 to your computer and use it in GitHub Desktop.
rvalue reference disabled
class CrashDestination {
public:
CrashDestination(const std::string& aString)
: theString(aString)
{}
CrashDestination(const std::string&&) = delete;
void print() const { std::cout << theString << std::endl; }
private:
const std::string& theString;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment