Perfect forwarding

Adam D. Ruppe destructionator at gmail.com
Fri Jul 31 13:01:37 UTC 2020


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


More information about the Digitalmars-d mailing list