stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Dean" <Jeremy.D...@roguewave.com>
Subject Map error
Date Wed, 18 Feb 2009 20:51:25 GMT
I have a customer that getting the following error when trying to
compile his code:
 
Platform: Solaris 9
Compiler: SunPro 5.9
Build: Multithreaded-Debug-shared
 
Error Message:
"include/map", line 206: Error: second is not a member of RWCString.
"GOCC_GuiPref.cc", line 93:     Where: While instantiating
"std::map<RWCString, GOCC_WinPref*, std::less<RWCString>,
std::allocator<RWCString>>::operator[](const RWCString&)".
 
Code:
Line 206 of Map looks like this:
    mapped_type& operator[] (const key_type &__k) {
        // note: temporary is necessary to avoid an xlC 5.0 bug (PR
#25040)
        iterator __i = insert (value_type (__k, mapped_type ())).first;
        return (*__i).second;
    }
 
Jeremy


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message