Operator Overloading : opOpAssign
    Eyyub 
    eyyub.pangearaion at gmail.com
       
    Sun Apr  8 11:50:51 PDT 2012
    
    
  
On Sunday, 8 April 2012 at 18:05:58 UTC, Timon Gehr wrote:
> On 04/08/2012 07:56 PM, Eyyub wrote:
>> Hai,
>>
>> I would to know how to overload this operator and why I have 
>> this error
>> at compile-time : 
>> http://paste.pocoo.org/show/vlfSSekGLCAriCJpiZvp/
>>
>> Thanks a lot.
>
> Try
>
> void opOpAssign(string op)(const Matrix other) if(op == "+")
>
> I think the fact that Matrix!(T,N,M) does not work is a bug. It 
> works if explicitly instantiated.
Mmh, thanks for your answer but it still does not work... :/.
So, you think that is a bug ?
Thanks
    
    
More information about the Digitalmars-d-learn
mailing list