#5160 closed Bugs (fixed)
Documentation: missing argument to replace_copy_if
Reported by: | Owned by: | Neil Groves | |
---|---|---|---|
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.
Change History (4)
comment:1 by , 11 years ago
Status: | new → assigned |
---|
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 10 years ago
Fixed in trunk. The fix will appear in 1.53 (I will merge to release branch after 1.53 beta release).
Note:
See TracTickets
for help on using tickets.
(In [82325]) [range] fixed #5160 (typo in replace_copy_if() example on intro page for range adaptors)