Boost C++ Libraries: Ticket #12890: Misleading documentation for regex_replace https://svn.boost.org/trac10/ticket/12890 <p> The documentation for regex_replace describes what the function does, but the description is incorrect. </p> <p> <a href="http://www.boost.org/doc/libs/1_63_0/libs/regex/doc/html/boost_regex/ref/regex_replace.html">http://www.boost.org/doc/libs/1_63_0/libs/regex/doc/html/boost_regex/ref/regex_replace.html</a> </p> <p> On this line: </p> <blockquote class="citation"> <p> calls </p> <blockquote class="citation"> <p> std::copy(m.prefix().first, m.prefix().last, out), </p> </blockquote> </blockquote> <p> the ".last" should be ".second", and "std::copy" is actually "re_detail::copy" </p> <p> And on this line: </p> <blockquote class="citation"> <p> calls </p> <blockquote class="citation"> <p> std::copy(last_m.suffix().first, last_m,suffix().last, out) </p> </blockquote> </blockquote> <p> Same as above, and there is also a typo in "last_m,suffix().last" (comma instead of period). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12890 Trac 1.4.3 Michel Morin Fri, 10 Mar 2017 10:34:40 GMT owner, component changed https://svn.boost.org/trac10/ticket/12890#comment:1 https://svn.boost.org/trac10/ticket/12890#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Matias Capeletto</span> to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">Documentation</span> → <span class="trac-field-new">regex</span> </li> </ul> Ticket