looking for V[string] workarounds

Dan dbdavidson at yahoo.com
Wed Mar 20 12:41:16 PDT 2013


On Wednesday, 20 March 2013 at 17:44:16 UTC, Ali Çehreli wrote:
> In that case, brute force to the rescue (nc stands for 
> non-const): :)
>
>   this(const(Series[string]) source) {
>       auto nc_source = cast(Series[string])source;
>     itemToSeries = nc_source.dup;
>   }


Wow - that worked. Thanks! I hope it is safe.



More information about the Digitalmars-d-learn mailing list