From f800dbc034e7a70a613bab8cd9d147be4f6e88b6 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 10 Jan 2017 21:26:13 -0500 Subject: windows build --- entityx/help/NonCopyable.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 entityx/help/NonCopyable.h (limited to 'entityx/help/NonCopyable.h') 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 -- cgit v1.2.3