I am declaring friend functions (such as overloading << and >> operators)prototypes in my class header file, and putting the function body with my member function bodies into my cpp file. It is causing compilation errors as though VC++ cannot recognise friend functions unless the whole function is inlined within the class definition.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.