more
This commit is contained in:
parent
d78b1a852a
commit
0dcdff6242
1 changed files with 1 additions and 2 deletions
|
@ -33,8 +33,7 @@ int main(int argc, char **argv)
|
|||
C c;
|
||||
cvifptr_t zup = &C::foo;
|
||||
vifptr_t baz = reinterpret_cast<vifptr_t>(zup);
|
||||
void (C::*mfp)(int) = &C::foo;
|
||||
vifptr_t biz = reinterpret_cast<vifptr_t>(c.*mfp);
|
||||
vifptr_t biz = reinterpret_cast<vifptr_t>(c.*&C::foo);
|
||||
|
||||
printf("%p\n", reinterpret_cast<void *>(baz));
|
||||
printf("%p\n", reinterpret_cast<void *>(biz));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue