
2011/11/2 Olaf van der Spek <ml@vdspek.org>:
Eh, why would you delay the fix? It seems like a serious issue.
This patch fixes the bug in more portable way: @@ -1147,7 +1147,7 @@ bool const result = !(stream << input).fail(); start = stringbuffer.pbase(); finish = stringbuffer.pptr(); - return result; + return result && (start != finish); } template <class T> All lexical_cast tests successfully passed with this patch on clang-linux-2.9, gcc-4.4, gcc-4.5 and gcc-4.6. This patch replaces Segmentation Fault with bad_lexical_cast exception (tested on code provided by Olaf van der Spek). OK to merge to release branch? Best regards, Antony Polukhin