Mark move constructor as noexcept
This commit is contained in:
1 parent
7d5316bd79
commit
93527f8647
1 file changed
+1
-1
+1
-1
@@ -113,7 +113,7 @@ public:
|
||||
}
|
||||
|
||||
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");
|
||||
other.ptr = nullptr;
|
||||
|
||||
Reference in new issue
Block a user