From a17ca4f87092c15389b4d30f5cfa8511a26aa3b6 Mon Sep 17 00:00:00 2001 From: Benjamin Bannier Date: Thu, 9 Jan 2025 17:00:57 +0100 Subject: [PATCH] Mark `swap` specialization `noexcept` --- src/spicy/cookie.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicy/cookie.h b/src/spicy/cookie.h index 35092d5e53..2739f0d026 100644 --- a/src/spicy/cookie.h +++ b/src/spicy/cookie.h @@ -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);