diff options
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index 551096fb5..65fdd5650 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -540,6 +540,7 @@ struct Struct { // Prevent accidental copies Struct& operator=(const Struct&) = delete; + Struct& operator=(Struct&&) = default; }; struct Array { @@ -550,6 +551,8 @@ struct Array { bool operator==(const Array& other) const { return element == other.element; } bool operator!=(const Array& other) const { return !(*this == other); } std::string toString() const; + + Array& operator=(const Array& other) = default; }; // TypeBuilder - allows for the construction of recursive types. Contains a |