Ticket #6264 (closed Bugs: fixed)
LexicalCast no longer works properly under some conditions
|Reported by:||Akim Demaille <akim.demaille@…>||Owned by:||apolukhin|
|Milestone:||To Be Determined||Component:||lexical_cast|
The following program is a stripped down version of something that used to work properly with the previous versions of Boost. I failed to make it smaller. I'm using G++ 4.2, but, fwiw, clang++ gives the same result.
The output is:
FAIL: bad lexical cast: source type value could not be interpreted as target
With non-empty strings to "escape" (in the real situation, of course Escape does something useful), it works properly.