This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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


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.
 



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