mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Move constructors/operators should be marked noexcept to avoid the compiler picking the copy constructor instead (performance-noexcept-move-constructor)
This commit is contained in:
parent
38333aac91
commit
95d2af4501
6 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -56,7 +56,7 @@ public:
|
|||
/**
|
||||
* Move assignment operator.
|
||||
*/
|
||||
Tag& operator=(const Tag&& other);
|
||||
Tag& operator=(const Tag&& other) noexcept;
|
||||
|
||||
/**
|
||||
* Compares two tags for equality.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue