From: John L. <mov...@us...> - 2003-02-20 01:05:42
|
Update of /cvsroot/oprofile/oprofile/libutil++ In directory sc8-pr-cvs1:/tmp/cvs-serv5289/libutil++ Modified Files: op_exception.h op_exception.cpp Log Message: throw() specifiers Index: op_exception.h =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/op_exception.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- op_exception.h 19 Feb 2003 03:17:21 -0000 1.1 +++ op_exception.h 20 Feb 2003 01:05:37 -0000 1.2 @@ -28,9 +28,9 @@ class op_exception : public std::exception { public: explicit op_exception(std::string const& msg); - ~op_exception() = 0; + ~op_exception() throw() = 0; - char const * what() const; + char const * what() const throw(); private: std::string message; }; @@ -53,7 +53,7 @@ { explicit op_runtime_error(std::string const & err); op_runtime_error(std::string const & err, int cerrno); - ~op_runtime_error() = 0; + ~op_runtime_error() throw() = 0; }; Index: op_exception.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/op_exception.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- op_exception.cpp 19 Feb 2003 03:17:21 -0000 1.1 +++ op_exception.cpp 20 Feb 2003 01:05:38 -0000 1.2 @@ -21,11 +21,11 @@ { } -op_exception::~op_exception() +op_exception::~op_exception() throw() { } -char const * op_exception::what() const +char const * op_exception::what() const throw() { return message.c_str(); } @@ -50,6 +50,6 @@ { } -op_runtime_error::~op_runtime_error() +op_runtime_error::~op_runtime_error() throw() { } |