Boost C++ Libraries: Ticket #1920: lexical_cast with tuple target fails, because of cleared skipws flag https://svn.boost.org/trac10/ticket/1920 <p> Doing a lexical_cast to a tuple does not work, because lexical_cast clears the skipws flag. </p> <p> The issue is described in the FAQ for lexical_cast: <a href="http://www.boost.org/doc/libs/1_35_0/libs/conversion/lexical_cast.htm#faq">http://www.boost.org/doc/libs/1_35_0/libs/conversion/lexical_cast.htm#faq</a> </p> <p> The tuple's operator&gt;&gt; apparently needs to set the iostate appropriately. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1920 Trac 1.4.3 Bryan Green <bryan.d.green@…> Thu, 15 May 2008 18:08:23 GMT attachment set https://svn.boost.org/trac10/ticket/1920 https://svn.boost.org/trac10/ticket/1920 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">tup.cpp</span> </li> </ul> <p> example program demonstrating the bug. </p> Ticket Bryan Green <bryan.d.green@…> Thu, 15 May 2008 18:50:50 GMT attachment set https://svn.boost.org/trac10/ticket/1920 https://svn.boost.org/trac10/ticket/1920 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">tuple_io.patch</span> </li> </ul> <p> a patch to tuple_io.hpp to fix the bug. </p> Ticket Steven Watanabe Wed, 09 Jun 2010 17:45:26 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1920#comment:1 https://svn.boost.org/trac10/ticket/1920#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62678" title="Make reading a tuple work with std::noskipws. Fixes #1920">[62678]</a>) Make reading a tuple work with std::noskipws. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1920" title="#1920: Bugs: lexical_cast with tuple target fails, because of cleared skipws flag (closed: fixed)">#1920</a> </p> Ticket