diff --git a/include/continuable/detail/awaiting.hpp b/include/continuable/detail/awaiting.hpp index 7458b19..1e59e7f 100644 --- a/include/continuable/detail/awaiting.hpp +++ b/include/continuable/detail/awaiting.hpp @@ -65,7 +65,7 @@ class awaitable { Continuable continuable_; /// A cache which is used to pass the result of the continuation /// to the coroutine. - typename trait_t::expected result_; + typename trait_t::expected_type result_; public: explicit awaitable(Continuable&& continuable) diff --git a/include/continuable/detail/expected.hpp b/include/continuable/detail/expected.hpp index c5db6e7..608dbca 100644 --- a/include/continuable/detail/expected.hpp +++ b/include/continuable/detail/expected.hpp @@ -341,37 +341,37 @@ template struct expected_result_trait; template <> struct expected_result_trait> { - using expected = expected; + using expected_type = expected; static constexpr void_guard_tag wrap() noexcept { return {}; } - static void unwrap(expected&& e) { + static void unwrap(expected_type&& e) { assert(e.is_value()); (void)e; } }; template struct expected_result_trait> { - using expected = expected; + using expected_type = expected; static auto wrap(T arg) { return std::move(arg); } - static auto unwrap(expected&& e) { + static auto unwrap(expected_type&& e) { assert(e.is_value()); return std::move(e.get_value()); } }; template struct expected_result_trait> { - using expected = expected>; + using expected_type = expected>; static auto wrap(First first, Second second, Rest... rest) { return std::make_tuple(std::move(first), std::move(second), std::move(rest)...); } - static auto unwrap(expected&& e) { + static auto unwrap(expected_type&& e) { assert(e.is_value()); return std::move(e.get_value()); }