Re: [Boost-bugs] [Boost C++ Libraries] #8262: numeric::average gives incorrect result

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8262: numeric::average gives incorrect result
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-12 12:01:48


#8262: numeric::average gives incorrect result
--------------------------------+--------------------------
  Reporter: james.hirschorn@… | Owner: eric_niebler
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: accumulator
   Version: Boost 1.53.0 | Severity: Problem
Resolution: fixed | Keywords: average
--------------------------------+--------------------------

Comment (by timpie.w@…):

 The fix seems incorrect.

    typedef typename functional::divides<Left, Right>::result_type
 result_type;

 looks incorrect and I think it should be

    typedef typename functional::divides<
         typename functional::plus<Left, Right>::result_type,
         int>::result_type result_type;

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8262#comment:7>
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:16 UTC