Opened 14 years ago
Closed 12 years ago
#1920 closed Bugs (fixed)
lexical_cast with tuple target fails, because of cleared skipws flag
Reported by: | Owned by: | Joel de Guzman | |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | tuple |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | tuple tuple_io lexical_cast | Cc: |
Description
Doing a lexical_cast to a tuple does not work, because lexical_cast clears the skipws flag.
The issue is described in the FAQ for lexical_cast: http://www.boost.org/doc/libs/1_35_0/libs/conversion/lexical_cast.htm#faq
The tuple's operator>> apparently needs to set the iostate appropriately.
Attachments (2)
Change History (3)
by , 14 years ago
comment:1 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
example program demonstrating the bug.