aboutsummaryrefslogtreecommitdiffstats
path: root/entityx/help/NonCopyable.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-01-10 21:26:13 -0500
committerClyne Sullivan <tullivan99@gmail.com>2017-01-10 21:26:13 -0500
commitf800dbc034e7a70a613bab8cd9d147be4f6e88b6 (patch)
treec8714ddc8f6712f07d921c08fd92ae8ef228494b /entityx/help/NonCopyable.h
parentc6651145a4a6e6611b585c1a87c127f38751db4b (diff)
windows build
Diffstat (limited to 'entityx/help/NonCopyable.h')
-rw-r--r--entityx/help/NonCopyable.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/entityx/help/NonCopyable.h b/entityx/help/NonCopyable.h
new file mode 100644
index 0000000..19c0ed1
--- /dev/null
+++ b/entityx/help/NonCopyable.h
@@ -0,0 +1,20 @@
+// Inspired heavily by boost::noncopyable
+
+#pragma once
+
+namespace entityx {
+namespace help {
+
+class NonCopyable {
+protected:
+ NonCopyable() = default;
+ ~NonCopyable() = default;
+
+
+ NonCopyable(const NonCopyable&) = delete;
+ NonCopyable& operator = (const NonCopyable &) = delete;
+};
+
+
+} // namespace help
+} // namespace entityx