CFanatic

Go Back   CFanatic > Programming > C++ Programming

Join CFanatic Forum Now

Overloading operator<< as a friend to a template class topic posted under C++ Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-30-2006, 04:40 AM
Junior Member
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
CrimzonRJ is on a distinguished road
| More
Overloading operator<< as a friend to a template class

Theoretically, how are you supposed to overload << as friend to a template class?

I keep getting an 'unresolved extern symbol' error.

Is this even a smart thing to do?
Reply With Quote
  #2  
Old 12-26-2006, 01:23 AM
Junior Member
 
Join Date: Dec 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Aztec is on a distinguished road
| More
Re: Overloading operator<< as a friend to a template class

Quote:
Originally Posted by CrimzonRJ View Post
Theoretically, how are you supposed to overload << as friend to a template class?

I keep getting an 'unresolved extern symbol' error.

Is this even a smart thing to do?
Could you please should code which we can compile and check.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
get Class johny10151981 Win32 Programming 1 10-07-2008 03:58 AM
operator+ in derived classes More options JimLangston C++ Programming 0 03-30-2007 01:17 AM
Operator New help More options John C++ Programming 0 03-30-2007 01:13 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:01 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board