Opened 8 years ago

Closed 6 years ago

#10927 closed Bugs (fixed)

Missing std:: qualifier for fabs in phoenix/test/stdlib/cmath.cpp

Reported by: Aparna Kumta <aparna.kumta@…> Owned by: Thomas Heller
Milestone: To Be Determined Component: phoenix
Version: Boost 1.58.0 Severity: Problem
Keywords: Cc:

Description

Compiling cmath.cpp with Oracle Solaris Studio12.4 on on Solaris 11.2 with -library=stlport4, we see

"../libs/phoenix/test/stdlib/cmath.cpp", line 28: Error: The function "fabs" must have a prototype.

"../libs/phoenix/test/stdlib/cmath.cpp", line 29: Error: The function "fabs" must have a prototype.

The call to fabs is unqualified.

The following modification to the file resolves the errors seen above.

$diff ./cmath.cpp ./cmath.cpp_orig

28,29c28,29

< BOOST_TEST(std::fabs(x-4.) < eps );

< BOOST_TEST(std::fabs(z-1.) < eps );

---

BOOST_TEST(fabs(x-4.) < eps );

BOOST_TEST(fabs(z-1.) < eps );

Change History (3)

comment:1 by Aparna Kumta <aparna.kumta@…>, 8 years ago

Summary: Missing std:: qualifier for phoenix/test/stdlib/cmath.cppMissing std:: qualifier for fabs in phoenix/test/stdlib/cmath.cpp

comment:2 by John Fletcher <J.P.Fletcher@…>, 8 years ago

Patch made on develop. Thank you for this information. John Fletcher

Note: See TracTickets for help on using tickets.