943,852 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 477
  • C++ RSS
Feb 21st, 2008
0

problem using templates

Expand Post »
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.....
Last edited by Ancient Dragon; Feb 21st, 2008 at 11:08 am. Reason: remvoed code tags. You only use them around code, not text
Similar Threads
Reputation Points: 18
Solved Threads: 0
Newbie Poster
Swati_bansal is offline Offline
6 posts
since Feb 2008
Feb 21st, 2008
0

Re: problem using templates

Reputation Points: 1159
Solved Threads: 285
Posting Virtuoso
vijayan121 is offline Offline
1,606 posts
since Dec 2006
Feb 21st, 2008
0

Re: problem using templates

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

Friend Functions
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,951 posts
since Aug 2005
Feb 21st, 2008
0

Re: problem using templates

Team Colleague
Reputation Points: 2780
Solved Threads: 312
long time no c
Dave Sinkula is offline Offline
4,790 posts
since Apr 2004
Feb 21st, 2008
0

Re: problem using templates

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
Reputation Points: 7
Solved Threads: 2
Junior Poster in Training
farag is offline Offline
61 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Wow I'm really stuck on this one. I need to make a rectangle out of symbols.
Next Thread in C++ Forum Timeline: A Function





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC