Get type of a pointer to member
Apr 17, 2008 at 6:45am
Hi all,
can someone tell me if there is a better way than the following to get the type of a pointer to member:
1 2 3 4 5 6 7 8 9 10
|
class A
{
public:
void foo()
{
}
};
typeof(&A::foo);
|
Thanks in advance.
Bye!
Apr 17, 2008 at 7:27am
@Tarch
as for as i know, there is only way to know type of object,
it is function typeof();
I think your approach is right to get type
Apr 17, 2008 at 7:30am
@Tarch
as for as i know, there is only way to know type of object,
it is function typeof();
I think your approach is right to get type
Apr 29, 2008 at 8:18am
Ok,
thank you very much.
Bye!
Topic archived. No new replies allowed.