Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Add noexcept annotations to EnableValue moves #16478

Merged
merged 1 commit into from
Feb 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class EncodableValue {
}
}

EncodableValue(EncodableValue&& other) { *this = std::move(other); }
EncodableValue(EncodableValue&& other) noexcept { *this = std::move(other); }

EncodableValue& operator=(const EncodableValue& other) {
if (&other == this) {
Expand All @@ -216,7 +216,7 @@ class EncodableValue {
return *this;
}

EncodableValue& operator=(EncodableValue&& other) {
EncodableValue& operator=(EncodableValue&& other) noexcept {
if (&other == this) {
return *this;
}
Expand Down