Re: [GSoC] Patches for shared_ptr array and polymorphic_allocator

2015-07-20 Thread Jonathan Wakely
On 18/07/15 00:02 -0700, Tim Shen wrote: On Fri, Jul 17, 2015 at 7:16 PM, Fan You youfan.n...@gmail.com wrote: Hi, According to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4335.html#memory.smartptr Here is my implementation of [8.2] Extend shared_ptr to support arrays Please

Re: [GSoC] Patches for shared_ptr array and polymorphic_allocator

2015-07-18 Thread Tim Shen
On Fri, Jul 17, 2015 at 7:16 PM, Fan You youfan.n...@gmail.com wrote: Hi, According to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4335.html#memory.smartptr Here is my implementation of [8.2] Extend shared_ptr to support arrays Please don't resend the shared_ptr patch, since

[GSoC] Patches for shared_ptr array and polymorphic_allocator

2015-07-17 Thread Fan You
Hi, According to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4335.html#memory.smartptr Here is my implementation of [8.2] Extend shared_ptr to support arrays [8.3] Type-Erased allocator Thanks, Fan #ifndef _GLIBCXX_MEMORY_RESOURCE #define _GLIBCXX_MEMORY_RESOURCE 1 #include