[Boost-bugs] [Boost C++ Libraries] #8137: boost math constants unused parameter 'n' warning

Subject: [Boost-bugs] [Boost C++ Libraries] #8137: boost math constants unused parameter 'n' warning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-21 21:48:48


#8137: boost math constants unused parameter 'n' warning
----------------------------------------------+-----------------------------
 Reporter: Andrew Hundt <ATHundt@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost 1.53.0 | Severity: Cosmetic
 Keywords: |
----------------------------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8137>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC