get back gcc 8.4 compatibility (#1127)

Before my PR #1122 `gsl/pointers` was gcc 8.4 compatible. Now it is not. This commit makes it compatible with gcc 8.4 again.
This commit is contained in:
Werner Henze 2023-07-06 21:51:48 +02:00 committed by GitHub
parent 167c77d28e
commit b34f7350fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ public:
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;
constexpr details::value_or_reference_return_t<T> get() const constexpr details::value_or_reference_return_t<T> get() const
noexcept(noexcept(details::value_or_reference_return_t<T>{ptr_})) noexcept(noexcept(details::value_or_reference_return_t<T>{std::declval<T&>()}))
{ {
return ptr_; return ptr_;
} }