Boost C++ Libraries: Ticket #12230: strerror deprecated in favor of strerror_s in VS2015 https://svn.boost.org/trac10/ticket/12230 <p> Compiling with VS2015 on Win7 64 bit building a 32 bit exe: I get the following error: </p> <p> 3&gt;c:\boost\boost_1_61_0\boost\exception\errinfo_errno.hpp(36): error C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. </p> <p> While I can work around this by using _CRT_SECURE_NO_WARNINGS, that flies in the face of what Boost is about - namely quality. I don't want to do something that weakens my ability to detect unsafe code. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12230 Trac 1.4.3 Emil Dotchevski Fri, 27 May 2016 19:28:53 GMT <link>https://svn.boost.org/trac10/ticket/12230#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12230#comment:1</guid> <description> <p> Try inserting the following line after line 12 in errinfo_errno.hpp: </p> <p> #pragma warning(disable:4996) </p> <p> Let me know if this solves your problem, and I'll fix it in the next release. </p> </description> <category>Ticket</category> </item> <item> <author>steve.hickman@…</author> <pubDate>Sat, 28 May 2016 12:54:11 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12230#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12230#comment:2</guid> <description> <p> That change appears to solve the problem. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Emil Dotchevski</dc:creator> <pubDate>Wed, 01 Jun 2016 01:30:15 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12230#comment:3 https://svn.boost.org/trac10/ticket/12230#comment:3 <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> Ticket