[PATCH] Move stl_uninitialized.h extensions to <ext/memory>
Gabriel Dos Reis
gdr@codesourcery.com
Sat Dec 29 10:59:00 GMT 2001
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
More information about the Libstdc++
mailing list