This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++/5745: get_temporary_buffer and return_temporary_buffer missing in ext/memory
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Philipp Thomas <pthomas at suse dot de>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 21 Feb 2002 17:15:37 +0100
- Subject: Re: libstdc++/5745: get_temporary_buffer and return_temporary_buffer missing in ext/memory
- References: <20020221150217.9273.qmail@sources.redhat.com> <20020221163315.C5349@jeffreys.suse.de>
Philipp Thomas wrote:
>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 */
>
I spoke to early :-(
Your patch does *not* really fix the problem: you have to additionally
include <memory> (which now contains get_temporary_buffer and
return_temporary_buffer) !
Please do, test :-) and repost.
Thanks,
Paolo.