diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 8dd800b..74afdd2 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -146,11 +146,11 @@ namespace boost { public: virtual ~error_category(){} - virtual const char * name() const; // see implementation note below - virtual std::string message( int ev ) const; // see implementation note below - 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; + 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; bool operator==(const error_category & rhs) const { return this == &rhs; } bool operator!=(const error_category & rhs) const { return this != &rhs; } diff --git a/src/error_code.cpp b/src/error_code.cpp index 8cebf28..2515be8 100644 --- a/src/error_code.cpp +++ b/src/error_code.cpp @@ -50,6 +50,7 @@ namespace class posix_error_category : public error_category { public: + posix_error_category(){} const char * name() const; std::string message( int ev ) const; }; @@ -57,6 +58,7 @@ namespace class system_error_category : public error_category { public: + system_error_category(){} const char * name() const; std::string message( int ev ) const; error_condition default_error_condition( int ev ) const;