mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 21:33:59 +08:00
* stdexcept: Put things in the std namespace, if appropriate.
From-SVN: r21788
This commit is contained in:
parent
a782562574
commit
ef1090573a
@ -1,3 +1,7 @@
|
||||
1998-08-17 Mark Mitchell <mark@markmitchell.com>
|
||||
|
||||
* stdexcept: Put things in the std namespace, if appropriate.
|
||||
|
||||
1998-07-12 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* Makefile.in (VERSION): Bump to 2.9.0.
|
||||
|
@ -37,6 +37,10 @@
|
||||
|
||||
extern "C++" {
|
||||
|
||||
#ifdef __HONOR_STD
|
||||
namespace std {
|
||||
#endif
|
||||
|
||||
class logic_error : public exception {
|
||||
string _what;
|
||||
public:
|
||||
@ -88,6 +92,10 @@ public:
|
||||
underflow_error (const string& what_arg): runtime_error (what_arg) { }
|
||||
};
|
||||
|
||||
#ifdef __HONOR_STD
|
||||
} // namespace std
|
||||
#endif
|
||||
|
||||
} // extern "C++"
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user