This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

More patches to CVS


I believe the following patches are correct, and not just work-arounds.

They are both needed when std is a namespace.

Regards,
Martin

Index: src/stdexcept.cc
===================================================================
RCS file: /cvs/libstdc++/libstdc++/src/stdexcept.cc,v
retrieving revision 1.9
diff -u -p -r1.9 stdexcept.cc
--- stdexcept.cc	1999/03/12 02:49:18	1.9
+++ stdexcept.cc	1999/04/15 07:25:43
@@ -43,13 +43,13 @@
 void
 __out_of_range (const char *str)
 {
-  throw out_of_range (str);
+  throw std::out_of_range (str);
 }
 
 
 void __length_error (const char *str)
 {
-  throw length_error (str);
+  throw std::length_error (str);
 }
 
 #if 0
Index: src/stlinst.cc
===================================================================
RCS file: /cvs/libstdc++/libstdc++/src/stlinst.cc,v
retrieving revision 1.2
diff -u -p -r1.2 stlinst.cc
--- stlinst.cc	1999/02/10 01:00:03	1.2
+++ stlinst.cc	1999/04/15 07:25:43
@@ -2,6 +2,8 @@
 #include <bits/stl_config.h>
 #include <bits/stl_alloc.h>
 
-template class __default_alloc_template<__NODE_ALLOCATOR_THREADS, 0>;
+template class  std::__malloc_alloc_template<0>;
 
-template class  __malloc_alloc_template<0>;
+template class std::__default_alloc_template<__NODE_ALLOCATOR_THREADS, 0>;
+
+


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