diff --git a/include/gsl/pointers b/include/gsl/pointers index 0759c53..6f9a193 100644 --- a/include/gsl/pointers +++ b/include/gsl/pointers @@ -117,6 +117,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_})) { return ptr_; }