This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++/5745: get_temporary_buffer and return_temporary_buffer missing in ext/memory


* 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


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