Date: Tue, 3 Jun 2025 22:01:00 -0700
The first thing that's missing here is the why. What is the problem
that this is trying to solve? And how are any current solutions
insufficient?
On Tue, Jun 3, 2025 at 8:52 PM Tymi via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> 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.
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
that this is trying to solve? And how are any current solutions
insufficient?
On Tue, Jun 3, 2025 at 8:52 PM Tymi via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> 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.
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Received on 2025-06-04 05:01:16