aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-16 10:15:00 -0400
committerLioncash <mathew1800@gmail.com>2018-08-16 10:21:14 -0400
commita0ce6de9136355410365f24fbdcab734700e88af (patch)
treee365c87268960cc9dce57f9afb00d0266901bc97 /src/core/core.h
parentc594ec341768a54dc2577c64fd15a6c0041456cd (diff)
core: Delete System copy/move constructors and assignment operators
Prevents potentially making copies or doing silly things by accident with the System instance, particularly given our current core is designed (unfortunately) around one instantiable instance. This will prevent the accidental case of: auto instance = System::Instance(); being compiled without warning when it's supposed to be: auto& instance = System::Instance();
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index d98b15a712..790e23caeb 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -40,6 +40,12 @@ namespace Core {
class System {
public:
+ System(const System&) = delete;
+ System& operator=(const System&) = delete;
+
+ System(System&&) = delete;
+ System& operator=(System&&) = delete;
+
~System();
/**