diff --git a/src/logging/Tag.cc b/src/logging/Tag.cc index f6e7f89c4c..d5f3f553d1 100644 --- a/src/logging/Tag.cc +++ b/src/logging/Tag.cc @@ -16,6 +16,12 @@ logging::Tag& logging::Tag::operator=(const logging::Tag& other) return *this; } +logging::Tag& logging::Tag::operator=(const logging::Tag&& other) + { + ::Tag::operator=(other); + return *this; + } + EnumVal* logging::Tag::AsEnumVal() const { return ::Tag::AsEnumVal(log_mgr->GetTagEnumType()); diff --git a/src/logging/Tag.h b/src/logging/Tag.h index 8357aee663..e75d7fc007 100644 --- a/src/logging/Tag.h +++ b/src/logging/Tag.h @@ -50,6 +50,11 @@ public: */ Tag& operator=(const Tag& other); + /** + * Move assignment operator. + */ + Tag& operator=(const Tag&& other); + /** * Compares two tags for equality. */