Subject: [Boost-bugs] [Boost C++ Libraries] #10929: Missing std:: qualifier for sin calls in libs/numeric/odeint/test/numeric/rosenbrock.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-14 02:20:34
#10929: Missing std:: qualifier for sin calls in
libs/numeric/odeint/test/numeric/rosenbrock.cpp
-------------------------------------------+---------------------
Reporter: Aparna Kumta <aparna.kumta@â¦> | Owner: dgregor
Type: Bugs | Status: new
Milestone: To Be Determined | Component: numeric
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------------+---------------------
Compiling rosenbrock.cpp with Oracle Solaris Studio12.4 on on Solaris 11.2
with -library=stlport4, we see the following error:
"../libs/numeric/odeint/test/numeric/rosenbrock.cpp", line 76: Error: The
function "sin" must have a prototype.
"../libs/numeric/odeint/test/numeric/rosenbrock.cpp", line 84: Error: The
function "sin" must have a prototype.
The call to sin is unqualified.
The following change resolves the issue.
76c76
< const double f = 2.0 * std::abs( std::sin(dt) - x1(0) ) / std::pow(
dt , o );
---
> const double f = 2.0 * std::abs( sin(dt) - x1(0) ) / std::pow( dt ,
o );
84c84
< BOOST_CHECK_SMALL( std::abs( std::sin(dt) - x1(0) ) ,
f*std::pow( dt , o ) );
---
> BOOST_CHECK_SMALL( std::abs( sin(dt) - x1(0) ) , f*std::pow( dt
, o ) );
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10929> 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