Boost C++ Libraries: Ticket #5557: lexical_cast<int>("+2") failure https://svn.boost.org/trac10/ticket/5557 <p> boost svn trunk revision 72056 breaks </p> <p> lexical_cast&lt;int&gt;("+2") </p> <p> on all platforms we have (g++ 3.2 through 4.6, Visual C++ 8.0 through 10.0, Intel C++ 9 through 11). </p> <p> I will attach a small reproducer. With g++ 4.4.4 I get: </p> <p> terminate called after throwing an instance of 'boost::exception_detail::clone_impl&lt;boost::exception_detail::error_info_injector&lt;boost::bad_lexical_cast&gt; &gt;' </p> <blockquote> <p> what(): bad lexical cast: source type value could not be interpreted as target </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5557 Trac 1.4.3 Ralf W. Grosse-Kunstleve Sat, 21 May 2011 22:33:19 GMT attachment set https://svn.boost.org/trac10/ticket/5557 https://svn.boost.org/trac10/ticket/5557 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">lexical_cast_72056_bug.cpp</span> </li> </ul> <p> small reproducer </p> Ticket Antony Polukhin Sun, 22 May 2011 09:34:46 GMT status changed https://svn.boost.org/trac10/ticket/5557#comment:1 https://svn.boost.org/trac10/ticket/5557#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Antony Polukhin Sun, 22 May 2011 11:35:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5557#comment:2 https://svn.boost.org/trac10/ticket/5557#comment:2 <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/72071" title="Fixes #5557. Adds tests on #5557">[72071]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5557" title="#5557: Bugs: lexical_cast&lt;int&gt;(&#34;+2&#34;) failure (closed: fixed)">#5557</a>. Adds tests on <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5557" title="#5557: Bugs: lexical_cast&lt;int&gt;(&#34;+2&#34;) failure (closed: fixed)">#5557</a> </p> Ticket Antony Polukhin Sun, 22 May 2011 11:39:19 GMT <link>https://svn.boost.org/trac10/ticket/5557#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5557#comment:3</guid> <description> <p> Great thanks.<br /> If you have some more test cases, that are not included in lexical_cast test suite, please send/post them. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ralf W. Grosse-Kunstleve</dc:creator> <pubDate>Mon, 23 May 2011 16:51:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5557#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5557#comment:4</guid> <description> <p> Thanks for the quick fix! There are no errors anymore in out nightly multi-platform tests. </p> </description> <category>Ticket</category> </item> </channel> </rss>