diff options
Diffstat (limited to 'source/blender/blenlib/BLI_utility_mixins.hh')
-rw-r--r-- | source/blender/blenlib/BLI_utility_mixins.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_utility_mixins.hh b/source/blender/blenlib/BLI_utility_mixins.hh index 441575f9111..31d28792865 100644 --- a/source/blender/blenlib/BLI_utility_mixins.hh +++ b/source/blender/blenlib/BLI_utility_mixins.hh @@ -23,6 +23,9 @@ namespace BLI { +/** + * A type that inherits from NonCopyable cannot be copied anymore. + */ class NonCopyable { public: /* Disable copy construction and assignment. */ @@ -35,6 +38,9 @@ class NonCopyable { NonCopyable &operator=(NonCopyable &&other) = default; }; +/** + * A type that inherits from NonMovable cannot be moved anymore. + */ class NonMovable { public: /* Disable move construction and assignment. */ |