c++ Programming Glossary: fun3
Reference to Function syntax - with and without & http://stackoverflow.com/questions/7321993/reference-to-function-syntax-with-and-without of function type FunctionType fun2 f ok FunctionTypeR fun3 f ok Test code typedef void FunctionTypeR typedef void FunctionType.. of function type FunctionType fun2 f ok FunctionTypeR fun3 f ok return 0 Now see the compilation error and warnings prog.cpp..
Access friend function defined in class http://stackoverflow.com/questions/7785886/access-friend-function-defined-in-class friend void fun2 std cout Im here2 std endl friend void fun3 void fun3 std cout Im here3 std endl int main fun A works ok.. void fun2 std cout Im here2 std endl friend void fun3 void fun3 std cout Im here3 std endl int main fun A works ok fun2 error.. in this scope A fun2 error 'fun2' is not a member of 'A' fun3 works ok How to access function fun2 c friend share improve..
|