Mixin Templates and Operators

Adam D Ruppe destructionator at gmail.com
Wed Apr 6 16:52:06 UTC 2022


On Wednesday, 6 April 2022 at 10:36:04 UTC, francesco.andreetto 
wrote:
> Am I doing something wrong or it is impossible to use mixin 
> templates like that?

mixin templates can't bring in operator overloads. The spec 
doesn't really say this I think, but that's the way it has been 
for a long time.

It only checks for operator overloads on the direct thing itself, 
no UFCS, no mixin template.


More information about the Digitalmars-d-learn mailing list