Templated operator overloading

XavierAP n3minis-git at yahoo.es
Wed Aug 22 13:41:38 UTC 2018


On Wednesday, 22 August 2018 at 12:36:39 UTC, Simen Kjærås wrote:
>
> Since both your opOpAssigns match equally, the compiler throws 
> up. The solution is to add some sort of restriction:

This doesn't happen apparently: the operator has a left and a 
right side, even if both types define the operator, only one of 
them is on the left at each call.

It works now after Ali corrected my stupid syntax :)


More information about the Digitalmars-d-learn mailing list