Modify

Ticket #5440 (closed Bugs: fixed)

Opened 3 years ago

Last modified 15 months ago

Documentation error for boost::inner_product from boost range library

Reported by: tom.vercauteren@… Owned by: neilgroves
Milestone: To Be Determined Component: range
Version: Boost Release Branch Severity: Cosmetic
Keywords: Cc:

Description

The 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  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 );

Attachments

Change History

comment:1 Changed 3 years ago by steven_watanabe

  • Owner changed from matias to neilgroves
  • Component changed from Documentation to range

comment:2 Changed 2 years ago by neilgroves

  • Status changed from new to assigned

comment:3 Changed 16 months ago by nathanridge

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [82327]) [range] fixed #5440 (typo in documentation for 'inner_product' algorithm)

comment:4 Changed 16 months ago by nathanridge

Fixed in trunk. The fix will appear in 1.53 (I will merge to release branch after 1.53 beta release).

comment:5 Changed 15 months ago by nathanridge

(In [82487]) [range] Merge documentation fixes and minor refactoring of docs (refs #5160; refs #5314; refs #5440; refs #5775; refs #6212; refs #7585; refs #7843; refs #7866).

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.