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/49c9c9b6076fa67f395009a08ec4c489 to your computer and use it in GitHub Desktop.
Save hatsusato/49c9c9b6076fa67f395009a08ec4c489 to your computer and use it in GitHub Desktop.
template <typename T>
struct Unmovable {
protected:
Unmovable() = default;
~Unmovable() = default;
Unmovable(const Unmovable&) = default;
Unmovable& operator=(const Unmovable&) = default;
Unmovable(Unmovable&&) = delete;
Unmovable& operator=(Unmovable&&) = delete;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment