Modify

Ticket #5160 (closed Bugs: fixed)

Opened 3 years ago

Last modified 15 months ago

Documentation: missing argument to replace_copy_if

Reported by: onlyone@… Owned by: neilgroves
Milestone: To Be Determined Component: range
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

In the Introduction and Motivation section of the documentation for Range Adaptors there is an example which uses boost::replace_copy_if. This example shows replace_copy_if being called with only three arguments (the Range, the Iterator and the Predicate), where boost::replace_copy_if actually takes four (it also must be passed the Value to replace the old value with). This makes the example somewhat confusing, especially for someone not familiar with the function.

Attachments

Change History

comment:1 Changed 2 years ago by neilgroves

  • Status changed from new to assigned

comment:2 Changed 16 months ago by nathanridge

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

(In [82325]) [range] fixed #5160 (typo in replace_copy_if() example on intro page for range adaptors)

comment:3 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:4 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.