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;