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: [PATCH] Move stl_uninitialized.h extensions to <ext/memory>


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


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