Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Jan 8, 2025
1 parent 9055bf9 commit afd00a3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions uasync/include/universal_fiber.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,7 @@ using namespace zcontext;
template<typename T>
inline static auto move_or_copy(T&& arg)
{
if constexpr (std::is_move_constructible_v<T>)
{
return static_cast<T&&>(arg);
}
else
{
return static_cast<const T&>(arg);
}
return arg;
}

template<typename... Args>
Expand Down

0 comments on commit afd00a3

Please sign in to comment.