<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: aCC iterator-in-a-namespace problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-iterator-in-a-namespace-problem/m-p/2648384#M722822</link>
    <description>P.P.S.  I found the -AA compiler option for aCC which enables the newer, std-namespace-enabled STL, so please ignore the last part of my first post.  Thank you.</description>
    <pubDate>Fri, 18 Jan 2002 19:53:54 GMT</pubDate>
    <dc:creator>Allan Stirrett</dc:creator>
    <dc:date>2002-01-18T19:53:54Z</dc:date>
    <item>
      <title>aCC iterator-in-a-namespace problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-iterator-in-a-namespace-problem/m-p/2648382#M722820</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;     I'm now trying to port our Win32/Linux/Solaris code to HP-UX 11i using aCC version 03.30.  I hit a roadblock that I THOUGHT was an STLport problem, but appears to be more aCC-related, since I get the same error building with the built-in Rogue Wave STL.&lt;BR /&gt;&lt;BR /&gt;    The attached source code demonstrates what I've run into:  When I declare a new class inside a namespace, then try to add an iterator inside that class in the namespace, I get the following compile errors:&lt;BR /&gt;&lt;BR /&gt;aCC -o testiter2 testiter2.cpp&lt;BR /&gt;Error 419: "testiter2.cpp", line 10 # 'iterator' is used as a type, but has not been defined as a type.&lt;BR /&gt;                    map&amp;lt;_Key, _Tp&amp;gt;::iterator m_Iterator;&lt;BR /&gt;                                    ^^^^^^^^            &lt;BR /&gt;Error 502: "testiter2.cpp", line 10 # Attempt to access 'map::&lt;TYPE inserted="" by="" compiler=""&gt;' is invalid; '&lt;TYPE inserted="" by="" compiler=""&gt;' is not a member of 'map' or any base class.&lt;BR /&gt;                    map&amp;lt;_Key, _Tp&amp;gt;::iterator m_Iterator;&lt;BR /&gt;                                             ^^^^^^^^^^ &lt;BR /&gt;Error (future) 642: "testiter2.cpp", line 10 # The 'typename' keyword is required if '&lt;TYPE inserted="" by="" compiler=""&gt;' is to be used as a type since the qualifier depends on template type parameters.&lt;BR /&gt;                    map&amp;lt;_Key, _Tp&amp;gt;::iterator m_Iterator;&lt;BR /&gt;                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ &lt;BR /&gt;&lt;BR /&gt;     Any ideas?&lt;BR /&gt;&lt;BR /&gt;     While I'm at it, I had a question about std::.  The compiler doesn't like me using std:: inside the "mine" namespace.  Why would that be?  If I want to put an std::map inside my mine::map, I don't think that's currently possible.  Am I missing something somewhere?&lt;BR /&gt;&lt;BR /&gt;     Thanks in advance for any hints/tips/solutions.&lt;BR /&gt;&lt;BR /&gt;                       Allan Stirrett.&lt;BR /&gt;&lt;/TYPE&gt;&lt;/TYPE&gt;&lt;/TYPE&gt;</description>
      <pubDate>Fri, 18 Jan 2002 15:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-iterator-in-a-namespace-problem/m-p/2648382#M722820</guid>
      <dc:creator>Allan Stirrett</dc:creator>
      <dc:date>2002-01-18T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: aCC iterator-in-a-namespace problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-iterator-in-a-namespace-problem/m-p/2648383#M722821</link>
      <description>P.S.  I've now discovered you get the same result withOUT the "namespace mine" around the code (just change the name of the new "map" class to something different--see the attached updated source).</description>
      <pubDate>Fri, 18 Jan 2002 15:42:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-iterator-in-a-namespace-problem/m-p/2648383#M722821</guid>
      <dc:creator>Allan Stirrett</dc:creator>
      <dc:date>2002-01-18T15:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: aCC iterator-in-a-namespace problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-iterator-in-a-namespace-problem/m-p/2648384#M722822</link>
      <description>P.P.S.  I found the -AA compiler option for aCC which enables the newer, std-namespace-enabled STL, so please ignore the last part of my first post.  Thank you.</description>
      <pubDate>Fri, 18 Jan 2002 19:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-iterator-in-a-namespace-problem/m-p/2648384#M722822</guid>
      <dc:creator>Allan Stirrett</dc:creator>
      <dc:date>2002-01-18T19:53:54Z</dc:date>
    </item>
  </channel>
</rss>

