Update of /cvsroot/boost/boost/boost/system
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9086
Modified Files:
Tag: c++0x
error_code.hpp
Log Message:
Tweaks to eliminate warnings on Windows and OS X
Index: error_code.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/system/error_code.hpp,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -d -r1.2.2.1 -r1.2.2.2
--- error_code.hpp 17 Jun 2007 15:52:10 -0000 1.2.2.1
+++ error_code.hpp 18 Jun 2007 11:46:31 -0000 1.2.2.2
@@ -121,9 +121,10 @@
// class error_category
------------------------------------------------//
- class BOOST_SYSTEM_DECL error_category : public noncopyable
+ class error_category : public noncopyable
{
public:
+ virtual ~error_category(){}
virtual const std::string & name() const = 0;
virtual posix_errno posix( int ev) const = 0;
virtual std::string message( int ev ) const = 0;
@@ -133,7 +134,7 @@
bool operator!=(const error_category & rhs) const { return !(*this ==
rhs); }
bool operator<( const error_category & rhs ) const
{
- return *this != rhs && name() < rhs.name();
+ return name() < rhs.name();
}
};
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs