looking for version of portfwd ported to HPUX

G

gerard.l1.demers

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::eek:stream& operator << <T> (std::eek:stream& out, const
vector& v);
 
R

Ron Natalie

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::eek:stream& operator << <T> (std::eek:stream& out, const
vector& v);
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::eek:stream& operator << <> (std::eek:stream& out, const vector<T>& v);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top