diff --git a/include/gsl/pointers b/include/gsl/pointers index 7afed1c..1caf294 100644 --- a/include/gsl/pointers +++ b/include/gsl/pointers @@ -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; diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp index d4c8cf4..0578131 100644 --- a/tests/notnull_tests.cpp +++ b/tests/notnull_tests.cpp @@ -533,6 +533,3 @@ TEST(notnull_tests, TestMakeNotNull) } #endif } - -static_assert(std::is_nothrow_move_constructible>::value, - "not_null must be no-throw move constructible"); diff --git a/tests/strict_notnull_tests.cpp b/tests/strict_notnull_tests.cpp index a568e95..3cf6911 100644 --- a/tests/strict_notnull_tests.cpp +++ b/tests/strict_notnull_tests.cpp @@ -188,6 +188,3 @@ TEST(strict_notnull_tests, TestStrictNotNullConstructorTypeDeduction) #endif } #endif // #if defined(__cplusplus) && (__cplusplus >= 201703L) - -static_assert(std::is_nothrow_move_constructible>::value, - "strict_not_null must be no-throw move constructible");