This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH to stdexcept for namespace std



Jason --

  I'd like to put this patch on the mainline.  OK? 

  I think this patch should also go on the branch because it is
zero-risk, and necessary if -fhonor-std.  Jeff, Jason?

-- 
Mark Mitchell 			mark@markmitchell.com
Mark Mitchell Consulting	http://www.markmitchell.com

1998-08-17  Mark Mitchell  <mark@markmitchell.com>

	* stdexcept: Put things in the std namespace, if appropriate.

Index: stdexcept
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libstdc++/stdexcept,v
retrieving revision 1.1.1.1
diff -c -p -r1.1.1.1 stdexcept
*** stdexcept	1997/08/21 22:58:34	1.1.1.1
--- stdexcept	1998/08/17 18:35:38
***************
*** 37,42 ****
--- 37,46 ----
  
  extern "C++" {
  
+ #ifdef __HONOR_STD
+ namespace std {
+ #endif
+ 
  class logic_error : public exception {
    string _what;
  public:
*************** public:
*** 88,93 ****
--- 92,101 ----
    underflow_error (const string& what_arg): runtime_error (what_arg) { }
  };
  
+ #ifdef __HONOR_STD
+ } // namespace std
+ #endif
+  
  } // extern "C++"
  
  #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]