Boost C++ Libraries: Ticket #6264: LexicalCast no longer works properly under some conditions https://svn.boost.org/trac10/ticket/6264 <p> 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. </p> <p> The output is: </p> <pre class="wiki">FAIL: bad lexical cast: source type value could not be interpreted as target </pre><p> With non-empty strings to "escape" (in the real situation, of course Escape does something useful), it works properly. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6264 Trac 1.4.3 Akim Demaille <akim.demaille@…> Wed, 14 Dec 2011 14:21:11 GMT attachment set https://svn.boost.org/trac10/ticket/6264 https://svn.boost.org/trac10/ticket/6264 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">lexical-test.cc</span> </li> </ul> <p> Test case </p> Ticket Braden McDaniel <braden@…> Mon, 19 Dec 2011 16:50:29 GMT cc set https://svn.boost.org/trac10/ticket/6264#comment:1 https://svn.boost.org/trac10/ticket/6264#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">braden@…</span> added </li> </ul> Ticket Antony Polukhin Tue, 20 Dec 2011 17:12:21 GMT status changed https://svn.boost.org/trac10/ticket/6264#comment:2 https://svn.boost.org/trac10/ticket/6264#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Antony Polukhin Wed, 21 Dec 2011 17:03:57 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6264#comment:3 https://svn.boost.org/trac10/ticket/6264#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</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/76096" title="Fixes #6298 Fixes #6264">[76096]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6298" title="#6298: Bugs: Throws bad_lexical_cast when used with empty vector (closed: fixed)">#6298</a> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6264" title="#6264: Bugs: LexicalCast no longer works properly under some conditions (closed: fixed)">#6264</a> </p> Ticket