diff --git a/include/gsl/pointers b/include/gsl/pointers index 9f419e0b..8cd4eb50 100644 --- a/include/gsl/pointers +++ b/include/gsl/pointers @@ -118,7 +118,7 @@ public: not_null(const not_null& other) = default; not_null& operator=(const not_null& other) = default; constexpr details::value_or_reference_return_t get() const - noexcept(noexcept(details::value_or_reference_return_t{ptr_})) + noexcept(noexcept(details::value_or_reference_return_t{std::declval()})) { return ptr_; }