id summary reporter owner description type status milestone component version severity resolution keywords cc 6052 unqualified sqrt() fails with SunCC Fedor Sergeev Lucanus Simonson "polygon/gtl_boost_unit_test fails to compile with SunCC {{{ ] sunCC -library=stlport4 -I. libs/polygon/test/gtl_boost_unit_test.cpp ... ""./boost/polygon/rectangle_concept.hpp"", line 934: Error: The function ""sqrt"" must have a prototype. ""libs/polygon/test/gtl_boost_unit_test.cpp"", line 794: Where: While instantiating ""boost::polygon::euclidean_distance, boost::polygon::rectangle_data>(const boost:: ""libs/polygon/test/gtl_boost_unit_test.cpp"", line 794: Where: Instantiated from non-template code. ... ] }}} Polygon sources use quite a number of unqualified sqrt() calls. However the standard header they include - '''{{{}}}''' - is not required to inject math functions into the global namespace. Thus the only standard way to use these functions (sqrt included) is via std:: namespace. All the uses of sqrt should be converted to std::sqrt, otherwise compilers with strictly conforming STLs (like SunCC -stlport4) will not be able to compile. (suggested patch attached)" Bugs closed To Be Determined polygon Boost 1.47.0 Problem fixed