TSalm wrote:
Does something have an idea on how to do something like this ?

You don't. Templates cannot participate in polymorphism. I've dealt with this in the past and ended up making another class with a template parameter that corresponds to the desired function template parameter...

Basically, you change:

interface IFoo
{
        void method(T)(T t);
}

to:
interface IFoo(T)
{
        void method(T t);
}

This only works in some situations.


Thanks in advance,
Tsalm

Reply via email to