diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-02-13 19:16:22 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-02-13 19:16:22 +0000 |
commit | 2fe3434682aae38bb0ab414135c2311110a6db90 (patch) | |
tree | 1dff4aea6a59c466ea6a6f15ad7f5e2ac69f5b37 /yage/util | |
parent | 400e8188a312abc7e5a0c7378dbd64fb8e0705e0 (diff) | |
parent | 49af8b16ae3f9e6579656ed10f815e9c465557d0 (diff) | |
download | YAGE-2fe3434682aae38bb0ab414135c2311110a6db90.tar.gz YAGE-2fe3434682aae38bb0ab414135c2311110a6db90.zip |
Merge branch 'entity'
Diffstat (limited to 'yage/util')
-rw-r--r-- | yage/util/noncopyable.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/yage/util/noncopyable.h b/yage/util/noncopyable.h new file mode 100644 index 00000000..f1325ed1 --- /dev/null +++ b/yage/util/noncopyable.h @@ -0,0 +1,19 @@ +#ifndef YAGE_UTIL_NONCOPYABLE_H +#define YAGE_UTIL_NONCOPYABLE_H + +namespace yage +{ + +class NonCopyable +{ +protected: + NonCopyable() = default; + ~NonCopyable() = default; + + NonCopyable(const NonCopyable &) = delete; + NonCopyable &operator=(const NonCopyable &) = delete; +}; + +} // namespace yage + +#endif |