
On 03/11/2016 09:38 PM, Phil Bouchard wrote:
- Once again all the examples can be found here: https://github.com/philippeb8/block_ptr/tree/master/example
- And the pointer itself here: https://github.com/philippeb8/block_ptr/blob/master/include/boost/smart_ptr/...
I just did a heavy code cleanup and I took the stack / heap detection code out because it is now based on explicit proxies. Also block_ptr<> is now distinct from the allocator used. Finally the class fastblock<> is properly abstracted and it is easy to add user defined block types just like this one: template <typename T> class fastblock : public block<T, fast_pool_allocator<T> > { public: typedef block<T, fast_pool_allocator<T> > base; fastblock() : base() { } [...] }; Regards, -Phil