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] |
On 10 June 2011 22:06, Jonathan Wakely wrote: > > * overload construct and destroy so both the old- and new-style > signatures are present. > > ? ? ?template<typename... _Args> > ? ? ? ?void > ? ? ? ?construct(pointer __p, _Args&&... __args) > ? ? ? ?{ construct(__p.get(), std::forward<_Args>(__args)...); } > > ? ? ?void destroy(pointer __p) > ? ? ?{ destroy(__p.get()); } Here's a patch implementing this option along with some tests to use the ExtPtr_allocator in C++0x mode Those tests fail without the patch so I'm committing this so that ExtPtr_allocator isn't completely broken in C++0x mode. 2011-06-11 Jonathan Wakely <jwakely.gcc@gmail.com> * include/ext/extptr_allocator.h (construct, destroy): Fix for C++0x mode by overloading to take allocator's pointer type. * testsuite/23_containers/vector/ext_pointer/types/2.cc: New. * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/ 2.cc: New. Tested x86_64-linux, committed to trunk.
Attachment:
extptr_alloc.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |