clang-tidy: performance-noexcept-move-constructor (#1063)

I ran GSL through clang-tidy with the performance-* checks

https://releases.llvm.org/15.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/performance/noexcept-move-constructor.html
This commit is contained in:
jpr42
2022-11-01 10:07:47 -07:00
committed by GitHub
parent 9c4212aca4
commit d69e578519
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -437,13 +437,13 @@ public:
constexpr basic_zstring_span(const basic_zstring_span& other) = default;
// move
constexpr basic_zstring_span(basic_zstring_span && other) = default;
constexpr basic_zstring_span(basic_zstring_span && other) noexcept = default;
// assign
constexpr basic_zstring_span& operator=(const basic_zstring_span& other) = default;
// move assign
constexpr basic_zstring_span& operator=(basic_zstring_span&& other) = default;
constexpr basic_zstring_span& operator=(basic_zstring_span&& other) noexcept = default;
constexpr bool empty() const noexcept { return false; }