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:
Tim Wojtulewicz 2020-02-03 11:14:03 -05:00
parent 38333aac91
commit 95d2af4501
6 changed files with 6 additions and 6 deletions

View file

@ -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 )
{