Opened 10 years ago
Closed 9 years ago
#7842 closed Bugs (fixed)
Inaccuracies on intro page for range adaptors
Reported by: | Nathan Ridge | Owned by: | Neil Groves |
---|---|---|---|
Milestone: | Boost 1.56.0 | Component: | range |
Version: | Boost Development Trunk | Severity: | Cosmetic |
Keywords: | Cc: |
Description
The "Introduction and Motivation" page for Range Adaptors has a number of issues:
- 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.
- 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 :)
Change History (3)
comment:1 by , 9 years ago
Status: | new → assigned |
---|
comment:2 by , 9 years ago
Milestone: | To Be Determined → Boost 1.56.0 |
---|
comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
merged .qbk to master - html will be removed from git and put into build before 1.56
Note:
See TracTickets
for help on using tickets.
Corrected in the .qbk on the develop branch.