Skip to content

Instantly share code, notes, and snippets.

@hatsusato
Last active March 13, 2017 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hatsusato/8fe51b4a592b8dde31219ea35b865abd to your computer and use it in GitHub Desktop.
Save hatsusato/8fe51b4a592b8dde31219ea35b865abd to your computer and use it in GitHub Desktop.
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