Opened 8 years ago

Closed 5 years ago

#10928 closed Bugs (fixed)

Missing std:: qualifier for floor in libs/numeric/odeint/test/integrate_implicit.cpp

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

Description

Compiling integrate_implicit.cpp with Oracle Solaris Studio12.4 on on Solaris 11.2 with -library=stlport4, we see the following error: "../libs/numeric/odeint/test/integrate_implicit.cpp", line 109: Error: The function "floor" must have a prototype.

The call to floor is missing the std:: qualifier. The following change fixes this error.

diff ./integrate_implicit.cpp ./integrate_implicit.cpp_orig

109c109 < BOOST_CHECK_EQUAL( static_cast<int>(times.size()) , static_cast<int>(std::floor(t_end/dt))+1 ); ---

BOOST_CHECK_EQUAL( static_cast<int>(times.size()) , static_cast<int>(floor(t_end/dt))+1 );

%

Change History (1)

comment:1 by mariomulansky, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.