Opened 8 years ago

Closed 8 years ago

#11077 closed Bugs (fixed)

Missing std:: qualifier on sqrt calls in rosenbrock4_controller.hpp

Reported by: Aparna Kumta <aparna.kumta@…> Owned by: karsten
Milestone: To Be Determined Component: odeint
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Compiling libs/numeric/odeint/test/rosenbrock4.cpp with Oracle Solaris 12.4 on Solaris 11.2, we see

"../boost/numeric/odeint/stepper/rosenbrock4_controller.hpp", line 77: Error: The function "sqrt" must have a prototype.

sqrt needs to be qualified with std::.

Also it appears <cmath> header might be missing?

diff ./rosenbrock4_controller.hpp_new rosenbrock4_controller.hpp

23d22

< #include <cmath>

78c77

< return std::sqrt( err / value_type( n ) );

---

return sqrt( err / value_type( n ) );

Change History (1)

comment:1 by karsten, 8 years ago

Resolution: fixed
Status: newclosed

The fix is already in develop branch.

Note: See TracTickets for help on using tickets.