Boost C++ Libraries: Ticket #774: regex_replace is not thread safe when format = $N https://svn.boost.org/trac10/ticket/774 <pre class="wiki">When used in a multi-threaded environment, regex_replace produces wrong results when the 'fmt' parameter is $&lt;digit&gt; (i.e., $1, $2, etc.). If, for example, the correct results of the replacement operation is 1234, and fmt is '$0', we'll eventually get one of the following: - 12340 - $0 (The last digit of the erroneous result is usually the digit number from the format). I'm attaching a sample program that demonstrates the problem. We've seen this problem on Linux (RedHat 9, gcc version 3.2.2 20030222) and on several other platforms. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/774 Trac 1.4.3 John Maddock Sun, 12 Nov 2006 17:02:06 GMT status changed https://svn.boost.org/trac10/ticket/774#comment:1 https://svn.boost.org/trac10/ticket/774#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=14804 This is a duplicate of https://sourceforge.net/tracker/?func=detail&amp;atid=107586&amp;aid=1530683&amp;group_id=7586. See regex-thread.diff for the fix. John Maddock. </pre> Ticket r_emek Sun, 12 Nov 2006 21:26:35 GMT <link>https://svn.boost.org/trac10/ticket/774#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/774#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=1581119 Thanks a lot. </pre> </description> <category>Ticket</category> </item> </channel> </rss>