template this and traits getOverloads issue.

BBasile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 20 06:36:08 PST 2015


On Friday, 20 November 2015 at 14:18:00 UTC, Alex Parrill wrote:

If the mixin has to be used on class and on struct, I cant use an 
interface. In this case override will create an error and go back 
to the solution on SO: statically check if things are already 
there.

> Templates are not virtual, which is why you might be running 
> into issues here; bug thinks it's being called on an `A` object.

This is the origin of the problem, I totally forgot this 
limitation.




More information about the Digitalmars-d-learn mailing list