Boost C++ Libraries: Ticket #5440: Documentation error for boost::inner_product from boost range library https://svn.boost.org/trac10/ticket/5440 <p> The <a href="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</a> from boost range gives the following signature for the second version of boost::inner_product: </p> <pre class="wiki">template&lt;class SinglePassRange1, class SinglePassRange2, class Value, class BinaryOperation1, class BinaryOperation2&gt; Value inner_product( const SinglePassRange1&amp; rng1, const SinglePassRange2&amp; rng2, Value init, BinaryOperation1 op1 ); </pre><p> This does not conform to the actual signature found in <a class="ext-link" href="http://svn.boost.org/svn/boost/trunk/boost/range/numeric.hpp"><span class="icon">​</span>boost/range/numeric.hpp</a> and is thus in contradiction with the signature of std::inner_product. I believe the signature should be </p> <pre class="wiki">template&lt;class SinglePassRange1, class SinglePassRange2, class Value, class BinaryOperation1, class BinaryOperation2&gt; Value inner_product( const SinglePassRange1&amp; rng1, const SinglePassRange2&amp; rng2, Value init, BinaryOperation1 op1, BinaryOperation2 op2 ); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5440 Trac 1.4.3 Steven Watanabe Fri, 08 Apr 2011 14:21:23 GMT owner, component changed https://svn.boost.org/trac10/ticket/5440#comment:1 https://svn.boost.org/trac10/ticket/5440#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Matias Capeletto</span> to <span class="trac-author">Neil Groves</span> </li> <li><strong>component</strong> <span class="trac-field-old">Documentation</span> → <span class="trac-field-new">range</span> </li> </ul> Ticket Neil Groves Sun, 18 Mar 2012 19:19:35 GMT status changed https://svn.boost.org/trac10/ticket/5440#comment:2 https://svn.boost.org/trac10/ticket/5440#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Nathan Ridge Thu, 03 Jan 2013 01:06:42 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5440#comment:3 https://svn.boost.org/trac10/ticket/5440#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/82327" title="[range] fixed #5440 (typo in documentation for 'inner_product' algorithm)">[82327]</a>) [range] fixed <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5440" title="#5440: Bugs: Documentation error for boost::inner_product from boost range library (closed: fixed)">#5440</a> (typo in documentation for 'inner_product' algorithm) </p> Ticket Nathan Ridge Thu, 03 Jan 2013 01:07:51 GMT <link>https://svn.boost.org/trac10/ticket/5440#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5440#comment:4</guid> <description> <p> Fixed in trunk. The fix will appear in 1.53 (I will merge to release branch after 1.53 beta release). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Nathan Ridge</dc:creator> <pubDate>Mon, 14 Jan 2013 09:19:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5440#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5440#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/82487" title="[range] Merge documentation fixes and minor refactoring of docs (refs ...">[82487]</a>) [range] Merge documentation fixes and minor refactoring of docs (refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5160" title="#5160: Bugs: Documentation: missing argument to replace_copy_if (closed: fixed)">#5160</a>; refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5314" title="#5314: Bugs: wrong example in document (closed: fixed)">#5314</a>; refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5440" title="#5440: Bugs: Documentation error for boost::inner_product from boost range library (closed: fixed)">#5440</a>; refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5775" title="#5775: Bugs: documentation: wrong description of pop_heap (copy-paste from push_heap) (closed: fixed)">#5775</a>; refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6212" title="#6212: Bugs: &#34;Method 3.1: Implement a Range Adaptor without arguments&#34; does not ... (closed: fixed)">#6212</a>; refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7585" title="#7585: Bugs: Boost.Range Adaptors indexed: mistake in online documentation (closed: fixed)">#7585</a>; refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7843" title="#7843: Bugs: missing example for 'tokenized' range adaptor (closed: fixed)">#7843</a>; refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7866" title="#7866: Bugs: Minor doc typo in Boost.Range (closed: fixed)">#7866</a>). </p> </description> <category>Ticket</category> </item> </channel> </rss>