Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2008-05-27 16:01:15


Author: bemandawes
Date: 2008-05-27 16:01:15 EDT (Tue, 27 May 2008)
New Revision: 45830
URL: http://svn.boost.org/trac/boost/changeset/45830

Log:
Fix ticket #1609
Text files modified:
   trunk/libs/system/test/error_code_test.cpp | 9 +--------
   trunk/libs/system/test/header_only_test.cpp | 9 +--------
   trunk/libs/system/test/system_error_test.cpp | 9 +--------
   3 files changed, 3 insertions(+), 24 deletions(-)

Modified: trunk/libs/system/test/error_code_test.cpp
==============================================================================
--- trunk/libs/system/test/error_code_test.cpp (original)
+++ trunk/libs/system/test/error_code_test.cpp 2008-05-27 16:01:15 EDT (Tue, 27 May 2008)
@@ -9,14 +9,7 @@
 
 //----------------------------------------------------------------------------//
 
-// VC++ 8.0 warns on usage of certain Standard Library and API functions that
-// can cause buffer overruns or other possible security issues if misused.
-// See http://msdn.microsoft.com/msdnmag/issues/05/05/SafeCandC/default.aspx
-// But the wording of the warning is misleading and unsettling, there are no
-// portable alternative functions, and VC++ 8.0's own libraries use the
-// functions in question. So turn off the warnings.
-#define _CRT_SECURE_NO_DEPRECATE
-#define _SCL_SECURE_NO_DEPRECATE
+#include <boost/config/warning_disable.hpp>
 
 #include <boost/test/minimal.hpp>
 #include <boost/system/error_code.hpp>

Modified: trunk/libs/system/test/header_only_test.cpp
==============================================================================
--- trunk/libs/system/test/header_only_test.cpp (original)
+++ trunk/libs/system/test/header_only_test.cpp 2008-05-27 16:01:15 EDT (Tue, 27 May 2008)
@@ -9,14 +9,7 @@
 
 //----------------------------------------------------------------------------//
 
-// VC++ 8.0 warns on usage of certain Standard Library and API functions that
-// can cause buffer overruns or other possible security issues if misused.
-// See http://msdn.microsoft.com/msdnmag/issues/05/05/SafeCandC/default.aspx
-// But the wording of the warning is misleading and unsettling, there are no
-// portable altersystem functions, and VC++ 8.0's own libraries use the
-// functions in question. So turn off the warnings.
-#define _CRT_SECURE_NO_DEPRECATE
-#define _SCL_SECURE_NO_DEPRECATE
+#include <boost/config/warning_disable.hpp>
 
 #define BOOST_ERROR_CODE_HEADER_ONLY
 

Modified: trunk/libs/system/test/system_error_test.cpp
==============================================================================
--- trunk/libs/system/test/system_error_test.cpp (original)
+++ trunk/libs/system/test/system_error_test.cpp 2008-05-27 16:01:15 EDT (Tue, 27 May 2008)
@@ -9,14 +9,7 @@
 
 //----------------------------------------------------------------------------//
 
-// VC++ 8.0 warns on usage of certain Standard Library and API functions that
-// can cause buffer overruns or other possible security issues if misused.
-// See http://msdn.microsoft.com/msdnmag/issues/05/05/SafeCandC/default.aspx
-// But the wording of the warning is misleading and unsettling, there are no
-// portable alternative functions, and VC++ 8.0's own libraries use the
-// functions in question. So turn off the warnings.
-#define _CRT_SECURE_NO_DEPRECATE
-#define _SCL_SECURE_NO_DEPRECATE
+#include <boost/config/warning_disable.hpp>
 
 #include <boost/test/minimal.hpp>
 #include <boost/system/system_error.hpp>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk