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:

  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.
  1. 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 Neil Groves, 9 years ago

Status: newassigned

Corrected in the .qbk on the develop branch.

comment:2 by Neil Groves, 9 years ago

Milestone: To Be DeterminedBoost 1.56.0

comment:3 by Neil Groves, 9 years ago

Resolution: fixed
Status: assignedclosed

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.