Commit e05cd3dd by Paolo Carlini Committed by Paolo Carlini

exception (bad_exception): Add comment.

2002-01-09  Paolo Carlini <pcarlini@unitus.it>

        * libsupc++/exception (bad_exception): Add comment.
        * libsupc++/new (bad_alloc): Same.
        * libsupc++/typeinfo (bad_cast): Same.
        (bad_typeid): Same.

From-SVN: r48700
parent 7d5c66d6
2002-01-09 Paolo Carlini <pcarlini@unitus.it> 2002-01-09 Paolo Carlini <pcarlini@unitus.it>
* libsupc++/exception (bad_exception): Add comment.
* libsupc++/new (bad_alloc): Same.
* libsupc++/typeinfo (bad_cast, bad_typeid): Same.
2002-01-09 Paolo Carlini <pcarlini@unitus.it>
libstdc++/3150: revert 2001-11-30 commit. DR266 only means libstdc++/3150: revert 2001-11-30 commit. DR266 only means
that the destructors should be removed from the descriptions that the destructors should be removed from the descriptions
in the standard: writing them explicitly allows the vtable in the standard: writing them explicitly allows the vtable
......
...@@ -63,6 +63,8 @@ namespace std ...@@ -63,6 +63,8 @@ namespace std
{ {
public: public:
bad_exception() throw() { } bad_exception() throw() { }
// This declaration is not useless:
// http://gcc.gnu.org/onlinedocs/gcc-3.0.2/gcc_6.html#SEC118
virtual ~bad_exception() throw(); virtual ~bad_exception() throw();
}; };
......
...@@ -51,6 +51,8 @@ namespace std ...@@ -51,6 +51,8 @@ namespace std
{ {
public: public:
bad_alloc() throw() { } bad_alloc() throw() { }
// This declaration is not useless:
// http://gcc.gnu.org/onlinedocs/gcc-3.0.2/gcc_6.html#SEC118
virtual ~bad_alloc() throw(); virtual ~bad_alloc() throw();
}; };
......
...@@ -130,6 +130,8 @@ namespace std ...@@ -130,6 +130,8 @@ namespace std
{ {
public: public:
bad_cast() throw() { } bad_cast() throw() { }
// This declaration is not useless:
// http://gcc.gnu.org/onlinedocs/gcc-3.0.2/gcc_6.html#SEC118
virtual ~bad_cast() throw(); virtual ~bad_cast() throw();
}; };
...@@ -138,6 +140,8 @@ namespace std ...@@ -138,6 +140,8 @@ namespace std
{ {
public: public:
bad_typeid () throw() { } bad_typeid () throw() { }
// This declaration is not useless:
// http://gcc.gnu.org/onlinedocs/gcc-3.0.2/gcc_6.html#SEC118
virtual ~bad_typeid() throw(); virtual ~bad_typeid() throw();
}; };
} // namespace std } // namespace std
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment