Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56631 - trunk/boost/system
From: bdawes_at_[hidden]
Date: 2009-10-07 09:27:28


Author: bemandawes
Date: 2009-10-07 09:27:27 EDT (Wed, 07 Oct 2009)
New Revision: 56631
URL: http://svn.boost.org/trac/boost/changeset/56631

Log:
System: minor code clean up
Text files modified:
   trunk/boost/system/error_code.hpp | 26 ++++++++------------------
   1 files changed, 8 insertions(+), 18 deletions(-)

Modified: trunk/boost/system/error_code.hpp
==============================================================================
--- trunk/boost/system/error_code.hpp (original)
+++ trunk/boost/system/error_code.hpp 2009-10-07 09:27:27 EDT (Wed, 07 Oct 2009)
@@ -183,11 +183,14 @@
     {
     public:
       virtual ~error_category(){}
- virtual inline const char * name() const; // see implementation note below
- virtual inline std::string message( int ev ) const; // see implementation note below
- virtual inline error_condition default_error_condition( int ev ) const;
- virtual inline bool equivalent( int code, const error_condition & condition ) const;
- virtual inline bool equivalent( const error_code & code, int condition ) const;
+
+ virtual const char * name() const = 0;
+ virtual std::string message( int ev ) const = 0;
+ virtual error_condition default_error_condition( int ev ) const;
+ virtual bool equivalent( int code,
+ const error_condition & condition ) const;
+ virtual bool equivalent( const error_code & code,
+ int condition ) const;
 
       bool operator==(const error_category & rhs) const { return this == &rhs; }
       bool operator!=(const error_category & rhs) const { return this != &rhs; }
@@ -496,19 +499,6 @@
       return *this == code.category() && code.value() == condition;
     }
 
- // error_category implementation note: VC++ 8.0 objects to name() and
- // message() being pure virtual functions. Thus these implementations.
- inline const char * error_category::name() const
- {
- return "error: should never be called";
- }
-
- inline std::string error_category::message( int ) const
- {
- static std::string s("error: should never be called");
- return s;
- }
-
   } // namespace system
 } // namespace boost
 


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