Actually, for number of threads >=3 this patch is better:--- old/libstdc++-v3/include/bits/basic_string.h 2012-05-30 17:03:15.974035000 -0400
+++ new/libstdc++-v3/include/bits/basic_string.h 2012-05-31 13:06:39.903442000 -0400
@@ -224,14 +224,20 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_refdata() th
Hi All,
I would like to propose a patch to libstdc++-v3/include/bits/basic_string.h
that solves the problem described in the bug 21334 (
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21334 ).
Briefly:
Developers often use non constant methods begin(), end(), operator [], at() for
constant operatio