Boost C++ Libraries: Ticket #7116: Conversion from float/double to string gives C4996 warning in VS2010 https://svn.boost.org/trac10/ticket/7116 <p> If I try to convert a float or double to std::string using the new 1.50.0 version I get very long warning in VS2010. </p> <p> Minimal example: </p> <pre class="wiki">#include &lt;iostream&gt; #include &lt;boost/lexical_cast.hpp&gt; using namespace std; int main() { cout &lt;&lt; boost::lexical_cast&lt;string&gt;(3.1415f) &lt;&lt; endl; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7116 Trac 1.4.3 sebi707@… Tue, 10 Jul 2012 18:28:41 GMT attachment set https://svn.boost.org/trac10/ticket/7116 https://svn.boost.org/trac10/ticket/7116 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">warning.log</span> </li> </ul> Ticket Antony Polukhin Mon, 16 Jul 2012 17:17:04 GMT <link>https://svn.boost.org/trac10/ticket/7116#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7116#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/79565" title="Workaround VC warning (refs #7116)">[79565]</a>) Workaround VC warning (refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7116" title="#7116: Bugs: Conversion from float/double to string gives C4996 warning in VS2010 (closed: fixed)">#7116</a>) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Thu, 19 Jul 2012 18:42:36 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7116#comment:2 https://svn.boost.org/trac10/ticket/7116#comment:2 <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/79605" title="Merge fix of VC warning (fixes #7116)">[79605]</a>) Merge fix of VC warning (fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7116" title="#7116: Bugs: Conversion from float/double to string gives C4996 warning in VS2010 (closed: fixed)">#7116</a>) </p> Ticket