When I try accesing private members of a class using friend functions after including the concept of templates in visual basic c++, the compiler shows me an error message that friend functions cannot access the private members declared in class.

Please help.....

Recommended Answers

All 4 Replies

i think that you mean c++ on visual studio

what ever i think that if i see the code will be better

anyway frien function declaration will be included in the class and the definition will be outside the class

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.