Boost C++ Libraries: Ticket #980: boost.format vc8/win32 compilation warning https://svn.boost.org/trac10/ticket/980 <p> boost/format/alt_sstream_impl.hpp, line 252 generates warning due to 'secure'-ness of vc8 stl implementation </p> <p> original boost: </p> <pre class="wiki"> if(0 &lt; prev_size) compat_traits_type::copy(newptr, oldptr, prev_size); </pre><p> proposed change: </p> <pre class="wiki"> if(0 &lt; prev_size) #if defined(_MSC_VER) &amp;&amp; (_MSC_VER == 1400) compat_traits_type::_Copy_s(newptr, new_size, oldptr, prev_size); #else compat_traits_type::copy(newptr, oldptr, prev_size); #endif </pre><p> or use BOOST_WORKAROUND macro. </p> <p> I'm aware that vc8's stl is not officially supported by boost and it's not a problem to patch it after each update locally, but I'd appreciate if I wouldn't have to. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/980 Trac 1.4.3 storangen@… Sat, 26 May 2007 14:06:33 GMT <link>https://svn.boost.org/trac10/ticket/980#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/980#comment:1</guid> <description> <p> Is the ticket about the same warnings as the ones below? </p> <p> From <a href="http://www.boost.org/more/version_history.html">http://www.boost.org/more/version_history.html</a> </p> <ul><li>Microsoft Visual C++ 6.0 (sp5, with and without STLport), 7.0, 7.1, 8.0. Note: Boost does not support the non-standard "Safe" C++ Library shipping with Visual C++ 8.0, which may result in many spurious warnings from Boost headers and other standards-conforming C++ code. To suppress these warnings, define the macro _SCL_SECURE_NO_DEPRECATE. </li></ul> </description> <category>Ticket</category> </item> <item> <author>const@…</author> <pubDate>Sat, 26 May 2007 17:58:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/980#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/980#comment:2</guid> <description> <p> Yes. But despite vc8's 'safe' library isn't officially supported, I've seen that some other boost libraries support it quite well. Is it a problem to add a simple workaround to boost.format too? </p> </description> <category>Ticket</category> </item> <item> <author>storangen@…</author> <pubDate>Sat, 26 May 2007 21:14:02 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/980#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/980#comment:3</guid> <description> <p> But should Boost support such a non standard library? Isn't SCL_SECURE_NO_DEPRECATE the best solution until the safe routines are standardized? </p> <p> Is this change really wanted in Boost 1.34.1? </p> <p> /$ </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Thomas Witt</dc:creator> <pubDate>Tue, 29 May 2007 17:11:06 GMT</pubDate> <title>milestone deleted https://svn.boost.org/trac10/ticket/980#comment:4 https://svn.boost.org/trac10/ticket/980#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-deleted">Boost 1.34.1</span> </li> </ul> <p> This is not a 1.34.1 boost does not make a concerted effort to support the "Safe" C++ Library in MSVC 8. </p> Ticket Samuel Krempp Sat, 18 Aug 2007 09:06:27 GMT owner set https://svn.boost.org/trac10/ticket/980#comment:5 https://svn.boost.org/trac10/ticket/980#comment:5 <ul> <li><strong>owner</strong> set to <span class="trac-author">Samuel Krempp</span> </li> </ul> Ticket Samuel Krempp Sat, 18 Aug 2007 09:11:18 GMT status changed https://svn.boost.org/trac10/ticket/980#comment:6 https://svn.boost.org/trac10/ticket/980#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket René Rivera Sat, 18 Aug 2007 14:34:27 GMT component changed https://svn.boost.org/trac10/ticket/980#comment:7 https://svn.boost.org/trac10/ticket/980#comment:7 <ul> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">format</span> </li> </ul> Ticket John Maddock Tue, 20 Nov 2007 11:50:17 GMT status changed; resolution, milestone set https://svn.boost.org/trac10/ticket/980#comment:8 https://svn.boost.org/trac10/ticket/980#comment:8 <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> <li><strong>milestone</strong> → <span class="trac-field-new">Boost 1.35.0</span> </li> </ul> <p> Warning suppressed in SVN Trunk. </p> Ticket