cppcoreguidelines-special-member-functions

* disable move constructor and move assignment for several core classes
This commit is contained in:
wmayer
2022-06-25 17:46:48 +02:00
parent 6b6df27df8
commit 2b04b01edc
7 changed files with 74 additions and 0 deletions

View File

@@ -48,6 +48,11 @@ public:
}
virtual ~ExtensionPythonT() {
}
ExtensionPythonT(const ExtensionPythonT&) = delete;
ExtensionPythonT(ExtensionPythonT&&) = delete;
ExtensionPythonT& operator= (const ExtensionPythonT&) = delete;
ExtensionPythonT& operator= (ExtensionPythonT&&) = delete;
};
typedef ExtensionPythonT<App::Extension> ExtensionPython;