mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
Merge topic 'string-swap-noexcept'
873b8244f0 String: Make swap method noexcept
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9754
This commit is contained in:
+1
-1
@@ -518,7 +518,7 @@ public:
|
||||
*this = std::move(s);
|
||||
}
|
||||
|
||||
void swap(String& other)
|
||||
void swap(String& other) noexcept
|
||||
{
|
||||
std::swap(this->string_, other.string_);
|
||||
std::swap(this->view_, other.view_);
|
||||
|
||||
Reference in New Issue
Block a user