diff --git a/tl/optional.hpp b/tl/optional.hpp index 9295d72..3c05511 100644 --- a/tl/optional.hpp +++ b/tl/optional.hpp @@ -173,7 +173,7 @@ template ::value && is_const_or_const_ref::value)>, #endif - typename = enable_if_t>{}>, + typename = enable_if_t>::value>, int = 0> constexpr auto invoke(Fn &&f, Args &&... args) noexcept( noexcept(std::mem_fn(f)(std::forward(args)...))) @@ -182,7 +182,7 @@ constexpr auto invoke(Fn &&f, Args &&... args) noexcept( } template >{}>> + typename = enable_if_t>::value>> constexpr auto invoke(Fn &&f, Args &&... args) noexcept( noexcept(std::forward(f)(std::forward(args)...))) -> decltype(std::forward(f)(std::forward(args)...)) {