[GSoC] Patches for shared_ptr array and polymorphic_allocator

2015-07-17 Thread Fan You
Hi, According to 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

Re: [PATCH][GSoC] Extend shared_ptr to support arrays

2015-06-24 Thread Fan You
Hi, Here is the revised patch including all the test case. This can also be seen at on branch Any comments? 2015-06-23 12:19 GMT+08:00 Tim Shen : > On Sun, Jun 21, 2015 at 3:50 AM, Tim Shen wrote: >> Quickly looked at __shared_ptr<__libfund_v1<_Tp>, _Lp>; wi

Fwd: [PATCH][GSoC] Extend shared_ptr to support arrays

2015-06-11 Thread Fan You
Hi, This is my first patch for GSoC project: extend shared_ptr to support arrays. Changes are made in these files: * libstdc++-v3/include/bits/shared_ptr_base.h : Renamed _Sp_counted_deleter to _Sp_counted_array, changed _shared_count construct from _Sp_counted_ptr to _Sp_counted_array. Added sp