File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -216,9 +216,9 @@ class SOURCEMETA_CORE_JSON_EXPORT JSON {
216
216
217
217
// / Misc constructors
218
218
JSON (const JSON &);
219
- JSON (JSON &&);
219
+ JSON (JSON &&) noexcept ;
220
220
auto operator =(const JSON &) -> JSON &;
221
- auto operator =(JSON &&) -> JSON &;
221
+ auto operator =(JSON &&) noexcept -> JSON &;
222
222
223
223
// / Destructor
224
224
~JSON ();
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ JSON::JSON(const JSON &other) : current_type{other.current_type} {
117
117
}
118
118
}
119
119
120
- JSON::JSON (JSON &&other) : current_type{other.current_type } {
120
+ JSON::JSON (JSON &&other) noexcept : current_type{other.current_type } {
121
121
switch (other.current_type ) {
122
122
case Type::Boolean:
123
123
this ->data_boolean = other.data_boolean ;
@@ -174,7 +174,7 @@ auto JSON::operator=(const JSON &other) -> JSON & {
174
174
return *this ;
175
175
}
176
176
177
- auto JSON::operator =(JSON &&other) -> JSON & {
177
+ auto JSON::operator =(JSON &&other) noexcept -> JSON & {
178
178
this ->maybe_destruct_union ();
179
179
this ->current_type = other.current_type ;
180
180
switch (other.current_type ) {
You can’t perform that action at this time.
0 commit comments