mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-03-02 12:28:07 +01:00
Merge pull request #186 from jackorobot/move_schema
Added explicit default move constructors/operators
This commit is contained in:
commit
478f9a4671
@ -42,6 +42,12 @@ public:
|
|||||||
// Disable copy assignment
|
// Disable copy assignment
|
||||||
Schema & operator=(const Schema &) = delete;
|
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
|
* @brief Clean up and free all memory managed by the Schema
|
||||||
*
|
*
|
||||||
|
@ -43,6 +43,12 @@ public:
|
|||||||
// Disable copy assignment
|
// Disable copy assignment
|
||||||
Subschema & operator=(const Subschema &) = delete;
|
Subschema & operator=(const Subschema &) = delete;
|
||||||
|
|
||||||
|
// Default move construction
|
||||||
|
Subschema(Subschema &&) = default;
|
||||||
|
|
||||||
|
// Default move assignment
|
||||||
|
Subschema & operator=(Subschema &&) = default;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Construct a new Subschema object
|
* @brief Construct a new Subschema object
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user