Ticket #8267 (closed Bugs: fixed)
lexical_cast uses stream buffers incorrectly
|Reported by:||johnmaddock||Owned by:||apolukhin|
|Version:||Boost Development Trunk||Severity:||Showstopper|
As noted in http://llvm.org/bugs/show_bug.cgi?id=15446 lexical_cast manipulates stringstream's internal buffer in a non-std conforming way causing it to fail on libc++.
If it helps any Boost.Regex has a stream buffer class that (probably) does what you want - see parser_buf in boost/regex/v4/cpp_regex_traits.hpp.
- Milestone changed from To Be Determined to Boost 1.54.0