Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-08-16 09:24:57


Author: bemandawes
Date: 2007-08-16 09:24:56 EDT (Thu, 16 Aug 2007)
New Revision: 38714
URL: http://svn.boost.org/trac/boost/changeset/38714

Log:
Cosmetic changes, reenable message implementation
Text files modified:
   branches/c++0x/boost/boost/system/error_code.hpp | 11 ++++-------
   branches/c++0x/boost/boost/system/system_error.hpp | 10 +++++-----
   2 files changed, 9 insertions(+), 12 deletions(-)

Modified: branches/c++0x/boost/boost/system/error_code.hpp
==============================================================================
--- branches/c++0x/boost/boost/system/error_code.hpp (original)
+++ branches/c++0x/boost/boost/system/error_code.hpp 2007-08-16 09:24:56 EDT (Thu, 16 Aug 2007)
@@ -235,15 +235,8 @@
 
     };
 
-
     // non-member functions ------------------------------------------------//
 
-
- // posix::posix_errno make_error_code:
- inline error_code make_error_code( posix::posix_errno e )
- { return error_code( e, posix_category ); }
-
-
     // TODO: both of these may move elsewhere, but the LWG hasn't spoken yet.
 
     template <class charT, class traits>
@@ -263,6 +256,10 @@
             : 0);
     }
 
+ // make_error_code for posix::posix_errno ------------------------------//
+
+ inline error_code make_error_code( posix::posix_errno e )
+ { return error_code( e, posix_category ); }
 
     // error_category implementation ---------------------------------------//
 

Modified: branches/c++0x/boost/boost/system/system_error.hpp
==============================================================================
--- branches/c++0x/boost/boost/system/system_error.hpp (original)
+++ branches/c++0x/boost/boost/system/system_error.hpp 2007-08-16 09:24:56 EDT (Thu, 16 Aug 2007)
@@ -48,11 +48,11 @@
         try
         {
           m_what = this->runtime_error::what();
- //if ( m_error_code )
- //{
- // if ( !m_what.empty() ) m_what += ": ";
- // m_what += m_error_code.message();
- //}
+ if ( m_error_code )
+ {
+ if ( !m_what.empty() ) m_what += ": ";
+ m_what += m_error_code.message();
+ }
         }
         catch (...) { return runtime_error::what(); }
       }


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