Opened 8 years ago
Closed 5 years ago
#10929 closed Bugs (fixed)
Missing std:: qualifier for sin calls in libs/numeric/odeint/test/numeric/rosenbrock.cpp
Reported by: | Owned by: | Douglas Gregor | |
---|---|---|---|
Milestone: | To Be Determined | Component: | numeric |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
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 ) );