From 6b23937bafca79ddd9b544e337aaba36a06ce339 Mon Sep 17 00:00:00 2001 From: "Jordan Maples [MSFT]" <49793787+JordanMaples@users.noreply.github.com> Date: Thu, 30 Jan 2020 17:00:13 -0800 Subject: [PATCH] remove move constructor for not_null. --- include/gsl/pointers | 1 - tests/notnull_tests.cpp | 3 --- tests/strict_notnull_tests.cpp | 3 --- 3 files changed, 7 deletions(-) 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");