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,