mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +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
|
||||
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
|
||||
*
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user