libstdc++/5745: get_temporary_buffer and return_temporary_buffer missing in ext/memory
Philipp Thomas
pthomas@suse.de
Thu Feb 21 08:26:00 GMT 2002
Hi Paolo,
thanks for the quick answer.
* paolo@gcc.gnu.org (paolo@gcc.gnu.org) [20020221 16:03]:
> corrected my error:
> http://gcc.gnu.org/ml/libstdc++/2002-01/msg00403.html
> Sorry for the inconvenience, Paolo.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5745
But that doesn't fix backward/tempbuf.h (used by algo.h, which is why I
noticed the failure)!
If tempbuf.h is right in pulling them into global namepace, something like
this is needed:
2002-02-21 Philipp Thomas <pthomas@suse.de>
* include/backward/tempbuf.h: get_temporary_buffer and
return_temporary_buffer are in namespace std, not in __gnu_cxx.
Index: include/backward/tempbuf.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/backward/tempbuf.h,v
retrieving revision 1.8
diff -u -p -r1.8 tempbuf.h
--- tempbuf.h 2002/01/04 17:02:28 1.8
+++ tempbuf.h 2002/02/21 15:19:13
@@ -67,8 +67,8 @@
#include <bits/stl_uninitialized.h>
#include <ext/memory>
-using __gnu_cxx::get_temporary_buffer;
-using __gnu_cxx::return_temporary_buffer;
+using std::get_temporary_buffer;
+using std::return_temporary_buffer;
using __gnu_cxx::temporary_buffer;
#endif /* _CPP_BACKWARD_TEMPBUF_H */
--
Philipp Thomas <pthomas@suse.de>
SuSE Linux AG, Deutscherrnstr. 15-19, D-90429 Nuremberg, Germany
More information about the Gcc-bugs
mailing list