exception specifications in the standard library
Hi,
I have been reading up on the old messages on this list (up to 8 years
ago) of people discussing how exception specifications are more
trouble then the value they add.
My question is specifically: why does the C++ standard library have
exception specifications for some of its member functions and not for
others and have there been any discussions to either remove them from
the standard library requirements where they exist or add them for
others where they are missing?
The current state seems a bit haphazard.
namespace std {
template < class T > class numeric_limits {
public :
static const bool is_specialized = false ;
static T min () throw ();
static T max () throw ();
static T infinity () throw ();
static T quiet_NaN () throw ();
static T signaling_NaN () throw ();
......
}
namespace std {
new_handler set_new_handler ( new_handler new_p ) throw ();
}
stl container members don't seem to have any exception specifications,
also the same for many other standard library features.
-------------------------------
Thanks,
Ivan Novick
http://www.0x4849.net
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]