This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Move stl_uninitialized.h extensions to <ext/memory>
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Cc: Paolo Carlini <pcarlini at unitus dot it>, libstdc++ at gcc dot gnu dot org
- Date: Sat, 29 Dec 2001 18:35:38 -0500
- Subject: Re: [PATCH] Move stl_uninitialized.h extensions to <ext/memory>
- References: <3C2E0F99.C95FD6C6@unitus.it> <flpu4xyhr0.fsf@riz.cmla.ens-cachan.fr>
On Sat, Dec 29, 2001 at 07:59:46PM +0100, Gabriel Dos Reis wrote:
> Paolo Carlini <pcarlini@unitus.it> writes:
>
> | Hi,
> |
> | this one moves some extensions present in stl_uninitialized.h to ext/memory. I
> | followed the very same approach used for stl_algo.h.
> |
> | A small surprise came from discovering that the implementation of deque in fact
> | uses such extensions! (I learned that by grepping, since we are not currently
> | testing much deque... :-(
>
> Thanks Paolo.
>
> Before your patch goes in, we should study, understand and make
> surgery on std::deque, as there is no point in moving extensions away
> if we were to bring them back.
Such surgery is happening right now. I've been adding doxygen-aware
comments to stl_deque.h since yesterday, and cleaning up the spacing as I go.
Something useful should be checked in soon.
(I'm doing this as part of PR 1853. The interesting memory tricks played
by deque<> have gone undocumented for far too long.)
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams