|
-
November 2nd, 2009, 12:11 AM
#8
Re: Template stream operator overloading
 Originally Posted by TriKri
I have a template class called basic_posint
Your class template is named base_posint. You need to decide if you want to use base_posint or basic_posint.
 Originally Posted by TriKri
Do you have to define the function within the class to prevent this warning? (I'm compiling with g++)
No. Read this FAQ on Why do I get linker errors when I use template friends? for a solution.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|