Date: Thu, 24 Apr 2025 15:21:04 +0100
On Thu, 24 Apr 2025 at 14:57, Breno GuimarĂ£es via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> If the author of the class needs to implement the specialization for moved_from<T>, they might very well implement a constructor that takes a tag indicating it's a type for overwrite.
> I don't get why this facility would help in any way
Exactly. If you are able to modify the class to support a possible
change to the language which might happen one day, you could modify
the class today to not require such a change to the language. If you
can't add such a constructor, you wouldn't be able to take advantage
of a hypothetical language change either.
<std-proposals_at_[hidden]> wrote:
>
> If the author of the class needs to implement the specialization for moved_from<T>, they might very well implement a constructor that takes a tag indicating it's a type for overwrite.
> I don't get why this facility would help in any way
Exactly. If you are able to modify the class to support a possible
change to the language which might happen one day, you could modify
the class today to not require such a change to the language. If you
can't add such a constructor, you wouldn't be able to take advantage
of a hypothetical language change either.
Received on 2025-04-24 14:21:20