diff --git a/thirdparty/ylt/util/expected.hpp b/thirdparty/ylt/util/expected.hpp index eb92535..d881339 100644 --- a/thirdparty/ylt/util/expected.hpp +++ b/thirdparty/ylt/util/expected.hpp @@ -16,44 +16,28 @@ #pragma once #include "tl/expected.hpp" namespace ylt { -#if __cpp_lib_expected >= 202202L && __cplusplus > 202002L -template -using expected = std::expected; -template -using unexpected = std::unexpected; +template using expected = tl::expected; -using unexpect_t = std::unexpect_t; - -#else -template -using expected = tl::expected; - -template -using unexpected = tl::unexpected; +template using unexpected = tl::unexpected; using unexpect_t = tl::unexpect_t; -#endif static constexpr unexpect_t unexpect; -} // namespace ylt +} // namespace ylt // decrepeted, instead by ylt::expected namespace coro_rpc { -template -using expected = ylt::expected; +template using expected = ylt::expected; -template -using unexpected = ylt::unexpected; +template using unexpected = ylt::unexpected; using unexpect_t = ylt::unexpect_t; -} // namespace coro_rpc +} // namespace coro_rpc namespace struct_pack { -template -using expected = ylt::expected; +template using expected = ylt::expected; -template -using unexpected = ylt::unexpected; +template using unexpected = ylt::unexpected; using unexpect_t = ylt::unexpect_t; -} // namespace struct_pack \ No newline at end of file +} // namespace struct_pack \ No newline at end of file