Boost C++ Libraries: Ticket #6645: lexical_cast<float>("0.0") -> warning: https://svn.boost.org/trac10/ticket/6645 <p> float f = boost::lexical_cast&lt;float&gt;("0.123"); </p> <p> compiler warning: boost/boost/lexical_cast.hpp:954: warning: implicit conversion shortens 64-bit value into a 32-bit value </p> <p> 32 and 64 bit with i686-apple-darwin10-gcc-4.2.1 (Xcode 3.2.5) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6645 Trac 1.4.3 ChristianR <habadaschi@…> Fri, 02 Mar 2012 11:17:32 GMT <link>https://svn.boost.org/trac10/ticket/6645#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6645#comment:1</guid> <description> <p> boost/lexical_cast.hpp: In function 'bool boost::detail::lcast_ret_float(T&amp;, const CharT*, const CharT*) [with Traits = std::char_traits&lt;char&gt;, T = float, CharT = char]':<br /> </p> <p> boost/lexical_cast.hpp:1637: instantiated from 'bool boost::detail::lexical_stream_limited_src&lt;CharT, Traits, <a class="missing wiki">RequiresStringbuffer</a>&gt;::operator&gt;&gt;(float&amp;) [with CharT = char, Traits = std::char_traits&lt;char&gt;, bool <a class="missing wiki">RequiresStringbuffer</a> = true]'<br /> </p> <p> boost/lexical_cast.hpp:1920: instantiated from 'static Target boost::detail::lexical_cast_do_cast&lt;Target, Source&gt;::lexical_cast_impl(const Source&amp;) [with Target = float, Source = const char*]'<br /> </p> <p> boost/lexical_cast.hpp:2087: instantiated from 'Target boost::lexical_cast(const Source&amp;) [with Target = float, Source = char <a class="changeset" href="https://svn.boost.org/trac10/changeset/6" title="New repository initialized by cvs2svn.">[6]</a>]'<br /> </p> <p> sandbox.cpp:149: instantiated from here<br /> </p> <p> boost/lexical_cast.hpp:954: warning: implicit conversion shortens 64-bit value into a 32-bit value </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Sun, 04 Mar 2012 18:01:14 GMT</pubDate> <title>status changed; cc set https://svn.boost.org/trac10/ticket/6645#comment:2 https://svn.boost.org/trac10/ticket/6645#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">antoshkka@…</span> added </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Changes were made in trunk at <a class="changeset" href="https://svn.boost.org/trac10/changeset/77221" title="Attempt to supress warning described in #6645 (implicit conversion ...">r77221</a> to suppress this warning. <br /> can you reproduce it now? </p> Ticket anonymous Mon, 05 Mar 2012 05:54:07 GMT <link>https://svn.boost.org/trac10/ticket/6645#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6645#comment:3</guid> <description> <p> I don't see it anymore. Thanks. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Thu, 24 May 2012 17:04:12 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6645#comment:4 https://svn.boost.org/trac10/ticket/6645#comment:4 <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> Ticket