It looks like std::cout can\'t print member function\'s address, for example:
#include
using std::cout;
using std::endl;
clas
I'd like to add to the other answers, that the reason that you are getting '1' printed instead of an address, is that, for some reason, the compiler is coercing your function pointer into a boolean, so that you are really calling ostream& operator<< (bool val);
This seems to be unrelated to the function being a member function.
You can uncover this kind of information with clang++ -cc1 -ast-dump:
(ImplicitCastExpr 0x3861dc0 '_Bool'
(UnaryOperator 0x3861940 'void (class TestClass::*)(void)' prefix '&'
(DeclRefExpr 0x38618d0 'void (void)' CXXMethod 0x3861500 'MyFunc' 'void (void)')))))