Added explicit default move constructor/operator to Schema and Subschema to enable move semantics for these classes

This commit is contained in:
Jesse Hoogervorst 2023-12-15 10:44:18 +01:00
parent 0b4771e273
commit 37dceaa5db
2 changed files with 12 additions and 0 deletions

View File

@ -42,6 +42,12 @@ public:
// Disable copy assignment
Schema & operator=(const Schema &) = delete;
// Default move construction
Schema(Schema &&other) = default;
// Disable copy assignment
Schema & operator=(Schema &&) = default;
/**
* @brief Clean up and free all memory managed by the Schema
*

View File

@ -43,6 +43,12 @@ public:
// Disable copy assignment
Subschema & operator=(const Subschema &) = delete;
// Default move construction
Subschema(Subschema &&) = default;
// Default move assignment
Subschema & operator=(Subschema &&) = default;
/**
* @brief Construct a new Subschema object
*/