remove move constructor for not_null.

This commit is contained in:
Jordan Maples [MSFT] 2020-01-30 17:00:13 -08:00
parent 6e20bfbba2
commit 6b23937baf
3 changed files with 0 additions and 7 deletions

View File

@ -88,7 +88,6 @@ public:
{ {
} }
not_null(not_null&& other) = default;
not_null(const not_null& other) = default; not_null(const not_null& other) = default;
not_null& operator=(const not_null& other) = default; not_null& operator=(const not_null& other) = default;

View File

@ -533,6 +533,3 @@ TEST(notnull_tests, TestMakeNotNull)
} }
#endif #endif
} }
static_assert(std::is_nothrow_move_constructible<not_null<void*>>::value,
"not_null must be no-throw move constructible");

View File

@ -188,6 +188,3 @@ TEST(strict_notnull_tests, TestStrictNotNullConstructorTypeDeduction)
#endif #endif
} }
#endif // #if defined(__cplusplus) && (__cplusplus >= 201703L) #endif // #if defined(__cplusplus) && (__cplusplus >= 201703L)
static_assert(std::is_nothrow_move_constructible<strict_not_null<void*>>::value,
"strict_not_null must be no-throw move constructible");