Browse Source

Merge pull request #1090 from lioncash/ctor-assign

core: Delete System copy/move constructors and assignment operators
bunnei 8 năm trước cách đây
mục cha
commit
f246fd778d
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/core/core.h

+ 6 - 0
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();
 
     /**