Opened 6 years ago

Last modified 6 years ago

#12890 new Bugs

Misleading documentation for regex_replace

Reported by: anonymous Owned by: John Maddock
Milestone: To Be Determined Component: regex
Version: Boost 1.63.0 Severity: Problem
Keywords: Cc:

Description

The documentation for regex_replace describes what the function does, but the description is incorrect.

http://www.boost.org/doc/libs/1_63_0/libs/regex/doc/html/boost_regex/ref/regex_replace.html

On this line:

calls

std::copy(m.prefix().first, m.prefix().last, out),

the ".last" should be ".second", and "std::copy" is actually "re_detail::copy"

And on this line:

calls

std::copy(last_m.suffix().first, last_m,suffix().last, out)

Same as above, and there is also a typo in "last_m,suffix().last" (comma instead of period).

Change History (1)

comment:1 by Michel Morin, 6 years ago

Component: Documentationregex
Owner: changed from Matias Capeletto to John Maddock
Note: See TracTickets for help on using tickets.