Opened 4 years ago

Closed 2 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 Changed 4 years ago by Aparna Kumta <aparna.kumta@…>

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

comment:2 Changed 4 years ago by John Fletcher <J.P.Fletcher@…>

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

comment:3 Changed 2 years ago by Kohei Takahashi

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