Date: Fri, 24 Oct 2025 06:44:22 +0200
> On Oct 23, 2025, at 5:56 PM, Thiago Macieira via Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> On Wednesday, 22 October 2025 21:56:16 Pacific Daylight Time Simon Schröder via
> Std-Proposals wrote:
>> The initial example was motivated by std::mutex which neither copyable nor
>> movable.
>
> For a good reason. It's one type that cannot survive the trick that Frederick
> suggested, because its constructors and destructors may access a global list
> of other mutexes.
>
> So please stop using it as an example for this particular need. Find other
> types.
So, this means that currently we are only talking about movable and copyable types? In that case the standard does not have to prescribe any tricks of how to implement such functionality (but implementations could still use it).
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Principal Engineer - Intel Data Center Group
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
> <signature.asc>
>
> On Wednesday, 22 October 2025 21:56:16 Pacific Daylight Time Simon Schröder via
> Std-Proposals wrote:
>> The initial example was motivated by std::mutex which neither copyable nor
>> movable.
>
> For a good reason. It's one type that cannot survive the trick that Frederick
> suggested, because its constructors and destructors may access a global list
> of other mutexes.
>
> So please stop using it as an example for this particular need. Find other
> types.
So, this means that currently we are only talking about movable and copyable types? In that case the standard does not have to prescribe any tricks of how to implement such functionality (but implementations could still use it).
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Principal Engineer - Intel Data Center Group
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
> <signature.asc>
Received on 2025-10-24 04:44:39
