Opened 11 years ago
Closed 11 years ago
#6264 closed Bugs (fixed)
LexicalCast no longer works properly under some conditions
Reported by: | Owned by: | Antony Polukhin | |
---|---|---|---|
Milestone: | To Be Determined | Component: | lexical_cast |
Version: | Boost 1.48.0 | Severity: | Regression |
Keywords: | Cc: | braden@… |
Description
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.
Attachments (1)
Change History (4)
by , 11 years ago
Attachment: | lexical-test.cc added |
---|
comment:1 by , 11 years ago
Cc: | added |
---|
comment:2 by , 11 years ago
Status: | new → assigned |
---|
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Test case