[Boost-bugs] [Boost C++ Libraries] #11085: Missing qualifier for pow call in phoenix/test/function/function_tests.cpp

Subject: [Boost-bugs] [Boost C++ Libraries] #11085: Missing qualifier for pow call in phoenix/test/function/function_tests.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-06 22:15:35


#11085: Missing qualifier for pow call in phoenix/test/function/function_tests.cpp
-------------------------------------------+---------------------
 Reporter: Aparna Kumta <aparna.kumta@…> | Owner: theller
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: phoenix
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------------+---------------------
 Compiling phoenix/test/function/function_tests.cpp with Oracle Solaris
 Studio 12.4 on Solaris 11.2 we see the following error:

 "../libs/phoenix/test/function/function_tests.cpp", line 128: Error: The
 function "pow" must have a prototype.

 The following change seems to resolve the issue.
 diff ./function_tests.cpp ./function_tests.cpp_orig
 88c88
 < return std::pow(a, b);
 ---
> return pow(a, b);
 128c128
 < BOOST_TEST((int)power(arg1, arg2)(d5, d3) == (int)std::pow(d5, d3));
 ---
> BOOST_TEST((int)power(arg1, arg2)(d5, d3) == (int)pow(d5, d3));
 %

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11085>
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:18 UTC