Date: Wed, 4 Jun 2025 05:52:20 +0200
A move-as function that would perform a conversion when moving, possible
implementation:
template<typename T, typename U>
constexpr T&& move_as(U&& u) noexcept
{
return static_cast<T&&>(static_cast<U&&>(u));
}
It would work on rvalue ref qualified conversions
Tymi.
implementation:
template<typename T, typename U>
constexpr T&& move_as(U&& u) noexcept
{
return static_cast<T&&>(static_cast<U&&>(u));
}
It would work on rvalue ref qualified conversions
Tymi.
Received on 2025-06-04 03:52:32