Просмотр исходного кода

Merge pull request #1090 from lioncash/ctor-assign

core: Delete System copy/move constructors and assignment operators
bunnei 8 лет назад
Родитель
Сommit
f246fd778d
1 измененных файлов с 6 добавлено и 0 удалено
  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();
 
     /**