From 93527f86470a4bd4747ced95edb06d4ece162c2a Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 25 Feb 2026 09:08:50 -0500 Subject: [PATCH] Mark move constructor as noexcept --- include/rcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rcp.h b/include/rcp.h index 1d169bc..a7e195b 100644 --- a/include/rcp.h +++ b/include/rcp.h @@ -113,7 +113,7 @@ public: } template - rcp(rcp && other) : ptr(static_cast(other.ptr)) + rcp(rcp && other) noexcept : ptr(static_cast(other.ptr)) { static_assert(std::is_base_of::value, "rcp: implicit cast must be an upcast"); other.ptr = nullptr;