Perfect forwarding
Chad Joan
chadjoan at gmail.com
Fri Jul 31 23:07:03 UTC 2020
On Friday, 31 July 2020 at 13:01:37 UTC, Adam D. Ruppe wrote:
> On Friday, 31 July 2020 at 09:10:44 UTC, Chad Joan wrote:
>> Whenever this is used, it does abandon the original
>> zero-allocation-conversion-to-string feature, but "toString"
>> never had that to begin with (at least not in the general
>> case; just for static strings and such).
>
> kinda a site node but be aware there are toString overloads
> that do offer this.
>
> see this for example:
> https://github.com/dlang/druntime/blob/master/src/object.d#L1995
That's good to know. Thanks for mentioning that!
More information about the Digitalmars-d
mailing list