A
Attila Feher
benben said:The whole point of using member functions is that they are invoked with
an object. If you don't want that, don't use a (non-static) member
function. Use a standalone function or a static member function.
But if that's for debugging purpose, maybe you can use some pointer
trick. But I'm not sure how valid the program would go;
test* t = 0;
t->fun();
Nope. That is illegal. Don't ever do it!
WW aka Attila
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]