C++ Logo

std-proposals

Advanced search

Re: [std-proposals] move_as

From: Jan Schultke <janschultke_at_[hidden]>
Date: Wed, 4 Jun 2025 10:01:22 +0200
> const auto myString = std::move_as<std::string>(c);

This seems more verbose and hard to reason about than the existing:

> const auto myString = std::string(std::move(c));

Received on 2025-06-04 08:01:38