Function templates do implicit conversions for their arguments

TommiT tommitissari at hotmail.com
Thu Jul 4 13:15:19 PDT 2013


On Thursday, 4 July 2013 at 20:11:56 UTC, TommiT wrote:
> struct DynamicArray(T)
> {
>     void opOpAssign(string op : "+")(int n) { }
> }

That was supposed to be:

struct DynamicArray(T)
{
     void opOpAssign(string op : "~")(T value) { }
}


More information about the Digitalmars-d mailing list