Forte C++ STL compile error: /opt/SUNWspro/CC/Cstd/algorithm.cc, line 280
807575Jul 22 2004 — edited Jun 10 2005Hello,
I'm using the Forte Developer 6 Update 2 C++ compiler and libraries on Solaris 9 SPARC. I'm trying to compile a C++ project that works on Windows, and I'm getting this weird error in a file from the C++ standard library (the STL part):
"/opt/SUNWspro/WS6U2/include/CC/Cstd/./algorithm.cc", line 280: Error: Formal argument pair1 of type const std::pair<std::basicstring<char, std::char_traits<char>, std::allocator<char>>, SomeClass>& is being passed const std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char>>, SomeClass>&.
Then comes a monster error of a few screenfuls, which I've truncated to what I think is essential to it:
"/opt/SUNWspro/WS6U2/include/CC/Cstd/./algorithm", line 179: Where: While instantiating "std::mismatch<__rwstd::__rb_tree<std::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char>>, SomeClass> ...
And a few screenfuls more of STL template hell.
We're including <algorithm> in the specified file, beside other STL includes like <string>, <vector>, <list>. Any ideas / patches I might've missed?