Mark swap specialization noexcept

This commit is contained in:
Benjamin Bannier 2025-01-09 17:00:57 +01:00
parent feec451bce
commit a17ca4f870

View file

@ -245,7 +245,7 @@ private:
Cookie(const Cookie& other) = delete;
Cookie& operator=(const Cookie& other) = delete;
friend inline void swap(Cookie& lhs, Cookie& rhs) {
friend inline void swap(Cookie& lhs, Cookie& rhs) noexcept {
Cookie tmp = std::move(lhs);
lhs = std::move(rhs);
rhs = std::move(tmp);