mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-01-19 00:46:03 +01:00
Added explicit default move constructor/operator to Schema and Subschema to enable move semantics for these classes
This commit is contained in:
parent
0b4771e273
commit
37dceaa5db
@ -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