diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-02-13 19:14:33 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-02-13 19:14:33 +0000 |
commit | 49af8b16ae3f9e6579656ed10f815e9c465557d0 (patch) | |
tree | 1dff4aea6a59c466ea6a6f15ad7f5e2ac69f5b37 /yage/util | |
parent | e9bd903761605c7619a235edddf07c3a0b963968 (diff) | |
download | YAGE-49af8b16ae3f9e6579656ed10f815e9c465557d0.tar.gz YAGE-49af8b16ae3f9e6579656ed10f815e9c465557d0.zip |
[entity] Starting work on entity system.
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 |