+2001-11-30 Benjamin Kosnik <bkoz@redhat.com>
+
+ libstdc++/3150
+ DR/266
+ * libsupc++/exception (bad_exception::~bad_exception()): Remove
+ declaration.
+ * libsupc++/new (bad_alloc::~bad_alloc()): Remove.
+ * libsupc++/typeinfo (bad_cast::~bad_cast()): Remove.
+ (bad_typeid::~bad_typeid()): Remove.
+ * libsupc++/tinfo.cc (bad_cast::~bad_cast()): Remove definition.
+ (bad_typeid::~bad_typeid()): Same.
+ * libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
+ * libsupc++/eh_exception.cc (bad_exception::~bad_exception()): Same.
+
+ * include/bits/std_iomanip.h: Tweak.
+
2001-11-29 Paolo Carlini <pcarlini@unitus.it>
libstdc++/3655
struct _Setiosflags { ios_base::fmtflags _M_mask; };
inline _Setiosflags
- setiosflags (ios_base::fmtflags __mask)
+ setiosflags(ios_base::fmtflags __mask)
{
_Setiosflags __x;
__x._M_mask = __mask;
struct _Setbase { int _M_base; };
inline _Setbase
- setbase (int __base)
+ setbase(int __base)
{
_Setbase __x;
__x._M_base = __base;
__os.width(__f._M_n);
return __os;
}
-
} // namespace std
-#endif /* __IOMANIP */
-
+#endif
std::exception::~exception() throw() { }
-std::bad_exception::~bad_exception() throw() { }
-
const char*
std::exception::what() const throw()
{
{
public:
bad_exception() throw() { }
- virtual ~bad_exception() throw();
};
/// If you write a replacement %terminate handler, it must be of this type.
{
public:
bad_alloc() throw() { }
- virtual ~bad_alloc() throw();
};
struct nothrow_t { };
__new_handler = handler;
return prev_handler;
}
-
-std::bad_alloc::~bad_alloc() throw() { }
~type_info ()
{ }
-std::bad_cast::~bad_cast() throw() { }
-std::bad_typeid::~bad_typeid() throw() { }
-
#if !__GXX_MERGED_TYPEINFO_NAMES
// We can't rely on common symbols being shared between shared objects.
{
public:
bad_cast() throw() { }
- virtual ~bad_cast() throw();
};
/** If you use a NULL pointer in a @c typeid expression, this is thrown. */
{
public:
bad_typeid () throw() { }
- virtual ~bad_typeid () throw();
};
} // namespace std