Subject: [Boost-bugs] [Boost C++ Libraries] #7842: Inaccuracies on intro page for range adaptors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-03 00:50:15
#7842: Inaccuracies on intro page for range adaptors
-------------------------------------+--------------------------------------
Reporter: nathanridge | Owner: neilgroves
Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
Version: Boost Development Trunk | Severity: Cosmetic
Keywords: |
-------------------------------------+--------------------------------------
The "Introduction and Motivation" page for Range Adaptors has a number of
issues:
1. The example where a use of boost::count_if is replaced by boost::count
+ the filtered adaptor is conceptually wrong (there is no reasonable value
to pass as the second argument to boost::count to get the desired
behaviour). In the example, a bogus argument called 'out' is passed.
2. More generally, the claim that "[in light of range adaptors]
'''''no''''' algorithm with the _if suffix is needed" is misleading. See
my analysis in this post for details: http://boost.2283326.n4.nabble.com
/range-count-vs-count-if-tp4374377p4388398.html
This section of the documentation needs to be cleaned up a bit, and it
perhaps needs to make less bold claims :)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7842> 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:11 UTC