This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
More patches to CVS
- To: libstdc++@sourceware.cygnus.com
- Subject: More patches to CVS
- From: "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de>
- Date: Thu, 15 Apr 1999 09:37:13 +0200
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>;
+
+