vcapp & sgi regressions (string_algo)

Hi, There are several problems reported by regression tests with the string_algo library on vcpp and mipspro compilers. I have no experience with these compilers and I wasn't able to figure out where the problem is from the error messages. 1. VCPP Following message is outputed: "/usr/vacpp/include/xmemory", line 120.23: 1540-0401 (S) The member "std::allocator<const char>::address(const_reference) const" is already declared. "/usr/vacpp/include/xmemory", line 118.17: 1540-0425 (I) "address" is defined on line 118 of "/usr/vacpp/include/xmemory". "/usr/vacpp/include/set", line 70.26: 1540-0700 (I) The previous message was produced while processing "class std::allocator<const char>". xlC -c -I/home/tk/boost_regression/boost -qNOOPTimize -qnoinline -g -qfullpath -qnotempinc -qfuncsect -qeh -qrtti -I"../bin/boost/libs/algorithm/string/test" -I"/home/tk/boost_regression/boost" -o "../bin/boost/libs/algorithm/string/test/find.test/vacpp/debug/find_test.o" "../libs/algorithm/string/test/find_test.cpp" It seems that the problem is triggered in my code by calling std::set<char>( char*, char* ) constructor. 2. MIPSPro In addtion to the following error in test framework: cc-1040 CC: ERROR File = /disk2/home/tk/boost_regression/boost/libs/test/src/test_tools.cpp, Line = 195 An identifier is expected. if( std::isprint( t ) ) ^ I'm getting similar error as with vcpp: cc-1377 CC: ERROR File = /usr/include/CC/stl_alloc.h, Line = 593 Member function function "std::allocator<const char>::address(std::allocator<const char>::reference) const" has already been declared. const_pointer address(const_reference __x) const { return &__x; } ^ A template was detected during header processing. instantiation of class "std::allocator<const char>" at line 92 of "/usr/include/CC/stl_set.h" instantiation of "std::set<const char, std::less<const char>, std::allocator<const char>>::set(const char *, const char *)" at line 74 of "/disk2/home/tk/boost_regression/boost/boost/algorithm/st ring/detail/classification.hpp" instantiation of "boost::algorithm::detail::is_any_ofF<const char>::is_any_ofF(const char (&)[4])" at line 201 of "/disk2/home/tk/boost_regression/boost/boost/algorithm/st ring/classification.hpp" instantiation of "boost::algorithm::detail::is_any_ofF<const char> boost::algorithm::is_any_of(const char (&)[4])" at line 143 of "../libs/algorithm/string/test/find_test.cpp" Can anybody help? Thanks, Pavol.

cc-1040 CC: ERROR File = /disk2/home/tk/boost_regression/boost/libs/test/src/test_tools.cpp, Line = 195 An identifier is expected.
if( std::isprint( t ) )
I don't know about the others, but that's probably caused by isprint being a macro, either changing to (std::isprint)(t) or by #undef'ing isprint should fix that. John.

John Maddock wrote:
cc-1040 CC: ERROR File = /disk2/home/tk/boost_regression/boost/libs/test/src/test_tools.cpp, Line = 195 An identifier is expected.
if( std::isprint( t ) )
I don't know about the others, but that's probably caused by isprint being a macro, either changing to (std::isprint)(t) or by #undef'ing isprint should fix that.
depending on MIPS Pro version, I've found not using the Boost supplied compatibility headers in the MIPS Pro jam file helps with most of these small issues. This is with v7.4.x MIPS Pro. Kevin -- | Kevin Wheatley | These are the opinions of | | Senior Do-er of Technical Things | nobody and are not shared | | Cinesite (Europe) Ltd | by my employers |

At least with version 7.4 it's really necessary !
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Kevin Wheatley Sent: Monday, March 08, 2004 2:39 PM To: boost@lists.boost.org Subject: [boost] Re: vcapp & sgi regressions (string_algo)
John Maddock wrote:
cc-1040 CC: ERROR File = /disk2/home/tk/boost_regression/boost/libs/test/src/test_tools.cpp, Line = 195 An identifier is expected.
if( std::isprint( t ) )
I don't know about the others, but that's probably caused
by isprint
being a macro, either changing to (std::isprint)(t) or by #undef'ing isprint should fix that.
depending on MIPS Pro version, I've found not using the Boost supplied compatibility headers in the MIPS Pro jam file helps with most of these small issues. This is with v7.4.x MIPS Pro.
Kevin
-- | Kevin Wheatley | These are the opinions of | | Senior Do-er of Technical Things | nobody and are not shared | | Cinesite (Europe) Ltd | by my employers | _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/bo> ost

I verified that putting the parenthesis works and so I also checked the change in. OK ?
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of John Maddock Sent: Monday, March 08, 2004 12:06 PM To: boost@lists.boost.org Subject: Re: [boost] vcapp & sgi regressions (string_algo)
cc-1040 CC: ERROR File = /disk2/home/tk/boost_regression/boost/libs/test/src/test_tools .cpp, Line = 195 An identifier is expected.
if( std::isprint( t ) )
I don't know about the others, but that's probably caused by isprint being a macro, either changing to (std::isprint)(t) or by #undef'ing isprint should fix that.
John.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/bo> ost
participants (4)
-
John Maddock
-
Kevin Wheatley
-
Pavol Droba
-
Toon Knapen