[Boost-bugs] [Boost C++ Libraries] #5440: Documentation error for boost::inner_product from boost range library

Subject: [Boost-bugs] [Boost C++ Libraries] #5440: Documentation error for boost::inner_product from boost range library
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-08 08:57:35


#5440: Documentation error for boost::inner_product from boost range library
---------------------------------------+------------------------------------
 Reporter: tom.vercauteren@… | Owner: matias
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: Documentation
  Version: Boost Release Branch | Severity: Cosmetic
 Keywords: |
---------------------------------------+------------------------------------
 The
 [http://www.boost.org/doc/libs/1_46_1/libs/range/doc/html/range/reference/algorithms/numeric/inner_product.html
 documentation of boost::inner product] from boost range gives the
 following signature for the second version of boost::inner_product:
 {{{
 template<class SinglePassRange1,
          class SinglePassRange2,
          class Value,
          class BinaryOperation1,
          class BinaryOperation2>
     Value inner_product( const SinglePassRange1& rng1,
                          const SinglePassRange2& rng2,
                          Value init,
                          BinaryOperation1 op1 );
 }}}
 This does not conform to the actual signature found in
 [http://svn.boost.org/svn/boost/trunk/boost/range/numeric.hpp
 boost/range/numeric.hpp] and is thus in contradiction with the signature
 of std::inner_product. I believe the signature should be
 {{{
 template<class SinglePassRange1,
          class SinglePassRange2,
          class Value,
          class BinaryOperation1,
          class BinaryOperation2>
     Value inner_product( const SinglePassRange1& rng1,
                          const SinglePassRange2& rng2,
                          Value init,
                          BinaryOperation1 op1,
                          BinaryOperation2 op2 );
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5440>
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:06 UTC