Boost C++ Libraries: Ticket #5732: small bugfixes and refactoring for lexical_cast https://svn.boost.org/trac10/ticket/5732 <p> lexical_cast requires refactoring: </p> <ul><li>reduce templates count </li><li>leave only one lexical converting class (at least for modern compilers) </li><li>fix small TODOs and XXXs from source code </li><li>make lexical_stream_limited_src more readable </li><li>update status/explicit-failures-markup.xml </li></ul><p> small bugs to fix: </p> <ul><li>make lexical_cast_inf_nan_test.cpp pass on Itanium pltform </li><li>make lexical_cast able to convert signed and unsigned chars to wchar_t and update lexical_cast_wchars_test </li></ul> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5732 Trac 1.4.3 Antony Polukhin Sat, 23 Jul 2011 15:55:57 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5732#comment:1 https://svn.boost.org/trac10/ticket/5732#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/73313" title="Fixes #5732. * reduces templates count * leaves only one lexical ...">[73313]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5732" title="#5732: Tasks: small bugfixes and refactoring for lexical_cast (closed: fixed)">#5732</a>. </p> <ul><li>reduces templates count </li><li>leaves only one lexical converting class (at least for modern compilers) </li><li>fixes small TODOs and XXXs from source code </li><li>makes lexical_stream_limited_src more readable </li><li>updates status/explicit-failures-markup.xml </li><li>makes lexical_cast_inf_nan_test.cpp pass on Itanium pltform </li><li>makes lexical_cast able to convert signed and unsigned chars to wchar_t and updates lexical_cast_wchars_test </li></ul> Ticket Antony Polukhin Sun, 24 Jul 2011 09:42:11 GMT <link>https://svn.boost.org/trac10/ticket/5732#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5732#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73323" title="Fixes #5732. * fixes performance regression, that was added by ...">[73323]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5732" title="#5732: Tasks: small bugfixes and refactoring for lexical_cast (closed: fixed)">#5732</a>. </p> <ul><li>fixes performance regression, that was added by previous commit </li><li>fixes float types preformance regression for old compilers </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Sun, 24 Jul 2011 10:57:02 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5732#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5732#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73328" title="Fixes #5732. * fixes some warnings and bugs for VC">[73328]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5732" title="#5732: Tasks: small bugfixes and refactoring for lexical_cast (closed: fixed)">#5732</a>. </p> <ul><li>fixes some warnings and bugs for VC </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Jürgen Hunold</dc:creator> <pubDate>Mon, 25 Jul 2011 09:06:34 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/5732 https://svn.boost.org/trac10/ticket/5732 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">lex.tar.gz</span> </li> </ul> <p> testcase for std::vector&lt;char&gt; </p> Ticket Jürgen Hunold Mon, 25 Jul 2011 09:08:13 GMT <link>https://svn.boost.org/trac10/ticket/5732#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5732#comment:4</guid> <description> <p> the last patches broke some of my code which uses lexical_cast to parse values from std::vector&lt;char&gt; </p> <p> Something as simple as </p> <blockquote> <p> std::vector&lt;char&gt; buffer; return boost::lexical_cast&lt;int&gt;(&amp;buffer<a class="missing changeset" title="No changeset 0 in the repository">[0]</a>); </p> </blockquote> <p> fails with </p> <p> BOOST_ROOT/boost/lexical_cast.hpp:1091:43: error: no matching constructor for initialization of 'std::basic_ostream&lt;char&gt;' </p> <blockquote> <p> std::basic_ostream&lt;CharT&gt; stream(&amp;stringbuffer); </p> <blockquote> <p> <sup> <del></del><del></del><del></del>~ </sup></p> </blockquote> </blockquote> <p> this is the start of the clang diagnostic. </p> <p> Both gcc (Ubuntu 4.6.0-3~ppa1) 4.6.1 20110409 (prerelease) and clang version 3.0 (trunk 135897) </p> <p> output contained in attached testcase lex.tar.gz </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Mon, 25 Jul 2011 15:13:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5732#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5732#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73357" title="Fixes #5732. * fixes compilation errors for nonconst char arrays">[73357]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5732" title="#5732: Tasks: small bugfixes and refactoring for lexical_cast (closed: fixed)">#5732</a>. </p> <ul><li>fixes compilation errors for nonconst char arrays </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Mon, 25 Jul 2011 15:25:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5732#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5732#comment:6</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/5732#comment:4" title="Comment 4">jhunold</a>: </p> <blockquote class="citation"> <p> the last patches broke some of my code which uses lexical_cast to parse values from std::vector&lt;char&gt; </p> </blockquote> <p> Fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/73357" title="Fixes #5732. * fixes compilation errors for nonconst char arrays">[73357]</a>. Added some test cases. Thanks again for the testing. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Tue, 26 Jul 2011 18:51:41 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5732#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5732#comment:7</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73384" title="Fixes #5732. * fixes compilation errors pgi compiler * fixes some ...">[73384]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5732" title="#5732: Tasks: small bugfixes and refactoring for lexical_cast (closed: fixed)">#5732</a>. </p> <ul><li>fixes compilation errors pgi compiler </li><li>fixes some bugs for MinGW compiler </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Wed, 27 Jul 2011 15:56:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5732#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5732#comment:8</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73401" title="Fixes #5732. * one more try to fix compilation errors on pgi compiler ">[73401]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5732" title="#5732: Tasks: small bugfixes and refactoring for lexical_cast (closed: fixed)">#5732</a>. </p> <ul><li>one more try to fix compilation errors on pgi compiler </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Fri, 29 Jul 2011 19:33:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5732#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5732#comment:9</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73435" title="Fixes #5732. * one more try to fix compilation errors on pgi compiler ">[73435]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5732" title="#5732: Tasks: small bugfixes and refactoring for lexical_cast (closed: fixed)">#5732</a>. </p> <ul><li>one more try to fix compilation errors on pgi compiler </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Sat, 30 Jul 2011 16:47:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5732#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5732#comment:10</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73446" title="Fixes #5732. * at least compiles on pgi">[73446]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5732" title="#5732: Tasks: small bugfixes and refactoring for lexical_cast (closed: fixed)">#5732</a>. </p> <ul><li>at least compiles on pgi </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Sun, 07 Aug 2011 17:38:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5732#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5732#comment:11</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73601" title="Fixes #5732. * some fixes for WinCE * updated explicit failures markup">[73601]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5732" title="#5732: Tasks: small bugfixes and refactoring for lexical_cast (closed: fixed)">#5732</a>. </p> <ul><li>some fixes for WinCE </li><li>updated explicit failures markup </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Wed, 10 Aug 2011 18:58:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5732#comment:12 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5732#comment:12</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73640" title="Fixes #5732. * suppress compilation warnings, if the compiler ...">[73640]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5732" title="#5732: Tasks: small bugfixes and refactoring for lexical_cast (closed: fixed)">#5732</a>. </p> <ul><li>suppress compilation warnings, if the compiler requires a return, even when it can never be reached </li></ul> </description> <category>Ticket</category> </item> </channel> </rss>