template - aliasing a member function

Ellery Newcomer ellery-newcomer at utulsa.edu
Wed Aug 8 16:21:31 PDT 2012


say I have

template T(alias fn) {
}

class Foo {
   int i();
   void i(int);
}

alias T!(Foo.i) Biz;

Is there a way to get a handle to both of the overloads of Foo.i inside T?

Actually, all I really need for that is to get 'Foo.i' out of fn.

mangleof looks promising..


More information about the Digitalmars-d-learn mailing list