forward tuple arg to local variable + dtor

vit vit at vit.vit
Sat Jan 22 19:57:25 UTC 2022


On Saturday, 22 January 2022 at 19:01:09 UTC, Stanislav Blinov 
wrote:
> On Saturday, 22 January 2022 at 18:00:58 UTC, vit wrote:
>
>> [...]
>
> Take by value and make a copy without forwarding:
>
> ```d
> import std.typecons : Tuple;
> import std.meta : allSatisfy;
>
> [...]

Thanks, second options is what I need. (In my case forwarding is 
more complex because weak ptrs need lock()).




More information about the Digitalmars-d-learn mailing list