Opened 8 years ago

Closed 6 years ago

#11085 closed Bugs (fixed)

Missing qualifier for pow call in phoenix/test/function/function_tests.cpp

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

Description

Compiling phoenix/test/function/function_tests.cpp with Oracle Solaris Studio 12.4 on Solaris 11.2 we see the following error:

"../libs/phoenix/test/function/function_tests.cpp", line 128: Error: The function "pow" must have a prototype.

The following change seems to resolve the issue. diff ./function_tests.cpp ./function_tests.cpp_orig 88c88 < return std::pow(a, b); ---

return pow(a, b);

128c128 < BOOST_TEST((int)power(arg1, arg2)(d5, d3) == (int)std::pow(d5, d3)); ---

BOOST_TEST((int)power(arg1, arg2)(d5, d3) == (int)pow(d5, d3));

%

Change History (2)

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

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

Note: See TracTickets for help on using tickets.