mirror of
https://github.com/microsoft/GSL.git
synced 2026-05-04 03:40:54 +02:00
committed by
Anna Gringauze
parent
fbe867a9c4
commit
2fc94db3eb
@@ -72,7 +72,7 @@ public:
|
||||
static_assert(std::is_assignable<T&, std::nullptr_t>::value, "T cannot be assigned nullptr.");
|
||||
|
||||
template <typename U, typename = std::enable_if_t<std::is_convertible<U, T>::value>>
|
||||
constexpr not_null(U&& u) : ptr_(std::forward<U>(u))
|
||||
constexpr explicit not_null(U&& u) : ptr_(std::forward<U>(u))
|
||||
{
|
||||
Expects(ptr_ != nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user