Last active
March 13, 2017 04:38
-
-
Save hatsusato/8fe51b4a592b8dde31219ea35b865abd to your computer and use it in GitHub Desktop.
This file contains 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
template <typename T> | |
struct Uncopyable { | |
protected: | |
Uncopyable() = default; | |
~Uncopyable() = default; | |
Uncopyable(const Uncopyable&) = delete; | |
Uncopyable& operator=(const Uncopyable&) = delete; | |
Uncopyable(Uncopyable&&) = default; | |
Uncopyable& operator=(Uncopyable&&) = default; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment