Skip to content

Commit

Permalink
get back gcc 8.4 compatibility (#1127)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
beinhaerter authored Jul 6, 2023
1 parent 167c77d commit b34f735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gsl/pointers
Original file line number Diff line number Diff line change
Expand Up @@ -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<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_;
}
Expand Down

0 comments on commit b34f735

Please sign in to comment.