Operator overloading problem

div0 div0 at sourceforge.net
Sat Aug 7 09:36:34 PDT 2010


On 07/08/2010 16:25, Blonder wrote:
> Is there a difference (performance) or something else between the two solutions?

I doubt it, templates are applied at compile time in the front end of 
the compiler so the generated code should be the same.

The if style syntax allows much more comprehensive restrictions to be 
placed on the template, but if it's a simple restriction the 
specialisation looks a bit neater. (well I think so)

-- 
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk


More information about the Digitalmars-d-learn mailing list