Merge pull request #186 from jackorobot/move_schema

Added explicit default move constructors/operators
This commit is contained in:
Tristan Penman 2023-12-17 15:42:40 +11:00 committed by GitHub
commit 478f9a4671
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
*/