diff --git a/tl/expected.hpp b/tl/expected.hpp index 47ceb8a..e00a248 100644 --- a/tl/expected.hpp +++ b/tl/expected.hpp @@ -2016,7 +2016,7 @@ template ::value> * = nullptr> constexpr auto map_error_impl(Exp &&exp, F &&f) -> expected, detail::decay_t> { - using result = ret_t>; + using result = expected, detail::decay_t>; return exp.has_value() ? result(*std::forward(exp))