Opened 10 years ago

Closed 10 years ago

#8137 closed Bugs (fixed)

boost math constants unused parameter 'n' warning

Reported by: Andrew Hundt <ATHundt@…> Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost 1.53.0 Severity: Cosmetic
Keywords: Cc:

Description

boost/math/constants.hpp line 172 should be:

template <int N> static T compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_<N>));\

there is currently an unused varable n as follows:

template <int N> static T compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_<N> n));\

This is a macro that is called dozens of times, so the warnings generated are quite irritating.

Change History (1)

comment:1 by John Maddock, 10 years ago

Resolution: fixed
Status: newclosed

Nod. It's a known issue in 1.53, but is fixed in SVN Trunk. Should be fixed in the next release.

Note: See TracTickets for help on using tickets.