Connecting Tech Pros Worldwide Help | Site Map

looking for version of portfwd ported to HPUX

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 01:59 AM
gerard.l1.demers@verizon.com
Guest
 
Posts: n/a
Default looking for version of portfwd ported to HPUX

I'm looking for a version of this code that has been ported to make
cleanly under HPUX11i. I'm not a C++ progammer and am struggling with
the compiler errors:

vector.hpp:55: error: declaration of `operator<<' as non-function
vector.hpp:55: error: expected `;' before '<' token
Line 55 of vector.hpp:


friend std::ostream& operator << <T> (std::ostream& out, const
vector& v);


  #2  
Old July 23rd, 2005, 01:59 AM
Ron Natalie
Guest
 
Posts: n/a
Default Re: looking for version of portfwd ported to HPUX

gerard.l1.demers@verizon.com wrote:[color=blue]
> I'm looking for a version of this code that has been ported to make
> cleanly under HPUX11i. I'm not a C++ progammer and am struggling with
> the compiler errors:
>
> vector.hpp:55: error: declaration of `operator<<' as non-function
> vector.hpp:55: error: expected `;' before '<' token
> Line 55 of vector.hpp:
>
>
> friend std::ostream& operator << <T> (std::ostream& out, const
> vector& v);
>[/color]
Can't be answered without more context. I suspect however that if we
are inside the definition of the vector template itself, it should read:
frind std::ostream& operator << <> (std::ostream& out, const vector<T>& v);

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.