diff options
author | Brad King <brad.king@kitware.com> | 2024-08-20 15:51:49 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-08-20 15:52:00 (GMT) |
commit | 52fc175d66e3e634a202ac784b6a63601c0cb72c (patch) | |
tree | c79161a285319c99ce9230ddbda1f74cd67cdd19 | |
parent | be881e89a8c0ce24986630f4cb3d6a9b7bb1e42d (diff) | |
parent | 873b8244f06392e6a8b1541cb1a9eff719868c07 (diff) | |
download | CMake-52fc175d66e3e634a202ac784b6a63601c0cb72c.zip CMake-52fc175d66e3e634a202ac784b6a63601c0cb72c.tar.gz CMake-52fc175d66e3e634a202ac784b6a63601c0cb72c.tar.bz2 |
Merge topic 'string-swap-noexcept'
873b8244f0 String: Make swap method noexcept
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9754
-rw-r--r-- | Source/cmString.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmString.hxx b/Source/cmString.hxx index 1994c2c..5e1b524 100644 --- a/Source/cmString.hxx +++ b/Source/cmString.hxx @@ -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_); |