Merge pull request #842 from JordanMaples/dev/jomaples/not_null

remove move constructor for not_null.
This commit is contained in:
Jordan Maples [MSFT] 2020-01-30 19:51:35 -08:00 committed by GitHub
commit b4dd39615a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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& operator=(const not_null& other) = default;

View File

@ -533,6 +533,3 @@ TEST(notnull_tests, TestMakeNotNull)
}
#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 // #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");