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: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: libstdc++ at gcc dot gnu dot org, gdr at codesourcery dot com
- Date: 29 Dec 2001 19:59:46 +0100
- Subject: Re: [PATCH] Move stl_uninitialized.h extensions to <ext/memory>
- Organization: CodeSourcery, LLC
- References: <3C2E0F99.C95FD6C6@unitus.it>
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.
As a first jet for testing user-namespace pollution by extensions,
there should be testcases along the lines:
#define extension-name { } // or whatever makes syntaxe error
#include <ext/xxx>
int main()
{
return 0;
}
Thanks,
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com