Well the version of the compiler we are using is old, so it did not work without the typename.
However, I managed to find a workaround by splitting the definition in two parts. The original code was:
typedef typename std::list<Sink>::iterator ListSinkIterator;
With the following it compiled...
Hi i am trying to compile this C++ code using the aCC compiler version 3.33 on HP-UX ver 11. This same code is working on Solaris and AIX.
The code snippet is:
typedef typename std::list<Sink>::iterator ListSinkIterator;
for(ListSinkIterator i = m_Sinks.begin(); i != m_Sinks.end(); i++) {...
Hi i am trying to compile this C++ code using the aCC compiler version 3.33 on HP-UX ver 11. This same code is working on Solaris and AIX.
The code snippet is:
typedef typename std::list<Sink>::iterator ListSinkIterator;
for(ListSinkIterator i = m_Sinks.begin(); i != m_Sinks.end(); i++) {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.