From b34f7350fe666b3637d150e8abae8691ec3b7343 Mon Sep 17 00:00:00 2001 From: Werner Henze <34543625+beinhaerter@users.noreply.github.com> Date: Thu, 6 Jul 2023 21:51:48 +0200 Subject: [PATCH] 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. --- include/gsl/pointers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl/pointers b/include/gsl/pointers index 9f419e0..8cd4eb5 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_; }