This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/5745: get_temporary_buffer and return_temporary_buffer missing in ext/memory
- From: Philipp Thomas <pthomas at suse dot de>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Feb 2002 17:32:10 +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> <3C751D29.40704@unitus.it>
* Paolo Carlini (pcarlini@unitus.it) [20020221 17:14]:
> >
> > * include/backward/tempbuf.h: get_temporary_buffer and
> > return_temporary_buffer are in namespace std, not in __gnu_cxx.
> Your patch does *not* really fix the problem:
Oh, yes, it *does* fix it ;-)
> you have to additionally include <memory> (which now contains
> get_temporary_buffer and return_temporary_buffer) !
This isn't needed, as ext/memory already includes <memory>.
Including tempbuf.h (or any other header that includes it) with my patch
applied only gets you the 'deprecated' warning as it should be.
Philipp
--
Philipp Thomas <pthomas@suse.de>
SuSE Linux AG, Deutscherrnstr. 15-19, D-90429 Nuremberg, Germany