map issue using the old/default std

Please, help with the following simple compilation

***********************************

// print_routines.cpp

#include <map>

#include <string>

int main()

{

std::map<const std::string, bool> fred;

return 0;

}

********************************

-bash-3.00$ CC print_routines.cpp

"/opt/SUNWspro/prod/include/CC/Cstd/./map", line 251: Error: Multiple declaration for std::map<const std::string, bool, std::less><const std::string>, std::allocator<std::pair><const std::string, bool>>>::insert(const std::pair<const std::string, bool>&).

"print_routines.cpp", line 6:Where: While specializing "std::map<const std::string, bool, std::less><const std::string>, std::allocator<std::pair><const std::string, bool>>>".

"print_routines.cpp", line 6:Where: Specialized in non-template code.

1 Error(s) detected.

Thank you very much.

stephen

[1022 byte] By [stephen_ba] at [2007-11-26 13:36:31]
# 1
I got it to work. the const was messing things up.map<string,bool> mymap;is fine
stephen_ba at 2007-7-7 22:22:03 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Your problem is discussed in the Library Compatibility section of the Sun C++ FAQ: http://developers.sun.com/sunstudio/documentation/ss11/mr/READMEs/c++_faq.html# LibComp
clamage45a at 2007-7-7 22:22:03 > top of Java-index,Development Tools,Solaris and Linux Development Tools...