954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

problem using templates

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.....

Swati_bansal
Newbie Poster
6 posts since Feb 2008
Reputation Points: 18
Solved Threads: 0
 
vijayan121
Posting Virtuoso
1,606 posts since Dec 2006
Reputation Points: 1,159
Solved Threads: 287
 

>>visual basic c++
There is no such thing :)

Friend Functions

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 
Dave Sinkula
long time no c
Team Colleague
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
 

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

farag
Junior Poster in Training
61 posts since Feb 2008
Reputation Points: 7
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You