From 1101e65491e077e0863f09e37b155cec3973cf2e Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Fri, 28 Sep 2007 02:03:29 +0000 Subject: [PATCH] Quiet compiler warnings [SVN r39585] --- include/boost/system/error_code.hpp | 10 +++++----- src/error_code.cpp | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) 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;