From 6a9d2c5bbd30c5db612e15b5eaeb1ac09d8a6bf5 Mon Sep 17 00:00:00 2001 From: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sun, 26 Jan 2025 19:31:20 -0600 Subject: [PATCH] Fixes for C++11 / older gcc --- src/utils/optional.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/optional.hpp b/src/utils/optional.hpp index ae7031e..6d4197f 100644 --- a/src/utils/optional.hpp +++ b/src/utils/optional.hpp @@ -22,9 +22,9 @@ namespace detail { int >::type = 0 > - using well_behaved = std::conditional_t< - std::is_reference::value, std::reference_wrapper>, T - >; + using well_behaved = typename std::conditional< + std::is_reference::value, std::reference_wrapper::type>, T + >::type; template< typename T,