mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
remove move constructor for not_null.
This commit is contained in:
parent
6e20bfbba2
commit
6b23937baf
@ -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;
|
||||||
|
|
||||||
|
@ -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");
|
|
||||||
|
@ -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");
|
|
||||||
|
Loading…
Reference in New Issue
Block a user