diff --git a/src/Tag.cc b/src/Tag.cc index 3b7c9a5bd9..b834bad9c9 100644 --- a/src/Tag.cc +++ b/src/Tag.cc @@ -65,7 +65,7 @@ Tag& Tag::operator=(const Tag& other) return *this; } -Tag& Tag::operator=(const Tag&& other) +Tag& Tag::operator=(const Tag&& other) noexcept { if ( this != &other ) { diff --git a/src/Tag.h b/src/Tag.h index a1c24702c0..f10c59cd4b 100644 --- a/src/Tag.h +++ b/src/Tag.h @@ -82,7 +82,7 @@ protected: /** * Move assignment operator. */ - Tag& operator=(const Tag&& other); + Tag& operator=(const Tag&& other) noexcept; /** * Compares two tags for equality. diff --git a/src/logging/Tag.cc b/src/logging/Tag.cc index d5f3f553d1..2ab2844e25 100644 --- a/src/logging/Tag.cc +++ b/src/logging/Tag.cc @@ -16,7 +16,7 @@ logging::Tag& logging::Tag::operator=(const logging::Tag& other) return *this; } -logging::Tag& logging::Tag::operator=(const logging::Tag&& other) +logging::Tag& logging::Tag::operator=(const logging::Tag&& other) noexcept { ::Tag::operator=(other); return *this; diff --git a/src/logging/Tag.h b/src/logging/Tag.h index 40a7b40b5f..29c7fd6cd4 100644 --- a/src/logging/Tag.h +++ b/src/logging/Tag.h @@ -56,7 +56,7 @@ public: /** * Move assignment operator. */ - Tag& operator=(const Tag&& other); + Tag& operator=(const Tag&& other) noexcept; /** * Compares two tags for equality. diff --git a/src/probabilistic/CardinalityCounter.cc b/src/probabilistic/CardinalityCounter.cc index bdc9797125..710bc86d21 100644 --- a/src/probabilistic/CardinalityCounter.cc +++ b/src/probabilistic/CardinalityCounter.cc @@ -76,7 +76,7 @@ CardinalityCounter::CardinalityCounter(CardinalityCounter& other) p = other.p; } -CardinalityCounter::CardinalityCounter(CardinalityCounter&& o) +CardinalityCounter::CardinalityCounter(CardinalityCounter&& o) noexcept { V = o.V; alpha_m = o.alpha_m; diff --git a/src/probabilistic/CardinalityCounter.h b/src/probabilistic/CardinalityCounter.h index 26f61591b1..a36f7aa610 100644 --- a/src/probabilistic/CardinalityCounter.h +++ b/src/probabilistic/CardinalityCounter.h @@ -43,7 +43,7 @@ public: /** * Move-Constructor */ - CardinalityCounter(CardinalityCounter&& o); + CardinalityCounter(CardinalityCounter&& o) noexcept; /** * Constructor for a known number of buckets.