Re: How to cast away shared?

2022-08-03 Thread Ruby The Roobster via Digitalmars-d-learn
On Wednesday, 3 August 2022 at 13:00:05 UTC, Paul Backus wrote: On Wednesday, 3 August 2022 at 12:50:17 UTC, Ruby The Roobster wrote: Any way to 'cast away' shared for an unknown type T? There's actually an `Unshared` template for this in `std.traits`, but for some reason it's `private`, so y

Re: How to cast away shared?

2022-08-03 Thread Paul Backus via Digitalmars-d-learn
On Wednesday, 3 August 2022 at 12:50:17 UTC, Ruby The Roobster wrote: Any way to 'cast away' shared for an unknown type T? There's actually an `Unshared` template for this in `std.traits`, but for some reason it's `private`, so you can't use it directly. Fortunately, it's only two lines: ``

How to cast away shared?

2022-08-03 Thread Ruby The Roobster via Digitalmars-d-learn
Any way to 'cast away' shared for an unknown type T?