Subject: [Boost-bugs] [Boost C++ Libraries] #12890: Misleading documentation for regex_replace
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-03-09 14:44:06
#12890: Misleading documentation for regex_replace
------------------------------+---------------------------
Reporter: anonymous | Owner: matias
Type: Bugs | Status: new
Milestone: To Be Determined | Component: Documentation
Version: Boost 1.63.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------
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).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12890> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-03-09 14:52:24 UTC