|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - pointer to a class member
how do i define a pointer-to-member for any class? what i want is to make a
typedef of a member function of any class.
something like
typedef int(*name)(int,int);
class a { public: int aa(int,int) } classa;
class b { public: int ba(int,int) } classb;
and then passit to a function like this
name var = classa.aa, var2 = classsb.ba;
is this possible??
vicentico
May 29 2003
In article <bb5c6q$uqp$1 digitaldaemon.com>, vicentico1 says...how do i define a pointer-to-member for any class? what i want is to make a typedef of a member function of any class. May 29 2003
|