Commit ac05b70a authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Mark a couple of move assignment operators as noexcept

Summary: MSVC informed me that these classes had noexcept move constructors but the move assignment operators were not marked as noexecpt.

Reviewed By: yfeldblum

Differential Revision: D19796949

fbshipit-source-id: d2bdc8ebb6d77709e367a4137fb0817c8006084f
parent 070c3b78
...@@ -122,7 +122,7 @@ struct BenchmarkSuspender { ...@@ -122,7 +122,7 @@ struct BenchmarkSuspender {
} }
BenchmarkSuspender& operator=(const BenchmarkSuspender&) = delete; BenchmarkSuspender& operator=(const BenchmarkSuspender&) = delete;
BenchmarkSuspender& operator=(BenchmarkSuspender&& rhs) { BenchmarkSuspender& operator=(BenchmarkSuspender&& rhs) noexcept {
if (start != TimePoint{}) { if (start != TimePoint{}) {
tally(); tally();
} }
......
...@@ -317,7 +317,7 @@ struct StaticMetaBase { ...@@ -317,7 +317,7 @@ struct StaticMetaBase {
other.value = kEntryIDInvalid; other.value = kEntryIDInvalid;
} }
EntryID& operator=(EntryID&& other) { EntryID& operator=(EntryID&& other) noexcept {
assert(this != &other); assert(this != &other);
value = other.value.load(); value = other.value.load();
other.value = kEntryIDInvalid; other.value = kEntryIDInvalid;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment