Update of /cvsroot/boost/boost/libs/system/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29860/src

Modified Files:
      Tag: c++0x
        error_code.cpp 
Log Message:
Move posix_errno into sub-namespace, expand test cases, test system_error

Index: error_code.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/system/src/error_code.cpp,v
retrieving revision 1.8.2.4
retrieving revision 1.8.2.5
diff -u -d -r1.8.2.4 -r1.8.2.5
--- error_code.cpp      24 Jul 2007 00:51:32 -0000      1.8.2.4
+++ error_code.cpp      26 Jul 2007 20:22:20 -0000      1.8.2.5
@@ -13,7 +13,7 @@
 //  can be 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
+//  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
@@ -30,13 +30,10 @@
 #include <cassert>
 
 using namespace boost::system;
+using namespace boost::system::posix;
 
 #include <cstring> // for strerror/strerror_r
 
-# ifdef BOOST_NO_STDC_NAMESPACE
-    namespace std { using ::strerror; }
-# endif
-
 # if defined( BOOST_WINDOWS_API )
 #   include "windows.h"
 #   ifndef ERROR_INCORRECT_SIZE
@@ -52,7 +49,7 @@
   struct system_to_posix_t
   { 
     int system_value;
-    boost::system::posix_errno posix_value;
+    boost::system::posix::posix_errno posix_value;
   };
 
   const system_to_posix_t system_to_posix[] = 
@@ -205,7 +202,7 @@
   {
   public:
     const std::string &   name() const;
-    posix_errno           posix( int ev ) const;
+    posix::posix_errno    posix( int ev ) const;
   };
 
   const system_error_category system_category_const;
@@ -228,16 +225,16 @@
       ++cur;
     } while ( cur != system_to_posix
       + sizeof(system_to_posix)/sizeof(system_to_posix_t) );
-    return boost::system::no_posix_equivalent;
+    return boost::system::posix::no_posix_equivalent;
   }
 
-
 } // unnamed namespace
 
 namespace boost
 {
   namespace system
   {
-    BOOST_SYSTEM_DECL const error_category & system_category = 
system_category_const;
+    BOOST_SYSTEM_DECL const error_category & system_category
+      = system_category_const;
   } // namespace system
 } // namespace boost


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to