[Boost-bugs] [Boost C++ Libraries] #10927: Missing std:: qualifier for phoenix/test/stdlib/cmath.cpp

Subject: [Boost-bugs] [Boost C++ Libraries] #10927: Missing std:: qualifier for phoenix/test/stdlib/cmath.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-13 21:58:48


#10927: Missing std:: qualifier for phoenix/test/stdlib/cmath.cpp
-------------------------------------------+---------------------
 Reporter: Aparna Kumta <aparna.kumta@…> | Owner: theller
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: phoenix
  Version: Boost 1.58.0 | Severity: Problem
 Keywords: |
-------------------------------------------+---------------------
 Compiling cmath.cpp with Oracle Solaris Studio12.4 on on Solaris 11.2
 with -library=stlport4, we see


 "../libs/phoenix/test/stdlib/cmath.cpp", line 28: Error: The function
 "fabs" must have a prototype.

 "../libs/phoenix/test/stdlib/cmath.cpp", line 29: Error: The function
 "fabs" must have a prototype.

 The call to fabs is unqualified.

 The following modification to the file resolves the errors seen above.

 $diff ./cmath.cpp ./cmath.cpp_orig

 28,29c28,29

 < BOOST_TEST(std::fabs(x-4.) < eps );

 < BOOST_TEST(std::fabs(z-1.) < eps );

 ---
> BOOST_TEST(fabs(x-4.) < eps );

> BOOST_TEST(fabs(z-1.) < eps );

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10927>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC