Mark move constructor as noexcept

This commit is contained in:
josh committed 2026-02-25 09:08:50 -05:00
1 parent 7d5316bd79
commit 93527f8647
1 file changed
+1 -1
+1 -1
View File
@@ -113,7 +113,7 @@ public:
} }
template <typename U> template <typename U>
rcp(rcp<U> && other) : ptr(static_cast<T *>(other.ptr)) rcp(rcp<U> && other) noexcept : ptr(static_cast<T *>(other.ptr))
{ {
static_assert(std::is_base_of<T, U>::value, "rcp: implicit cast must be an upcast"); static_assert(std::is_base_of<T, U>::value, "rcp: implicit cast must be an upcast");
other.ptr = nullptr; other.ptr = nullptr;