Boost logo

Boost :

Subject: Re: [boost] Review Request: impl_ptr (pimpl)
From: Hans Dembinski (hans.dembinski_at_[hidden])
Date: 2017-08-18 09:50:43


> On 15. Aug 2017, at 02:51, Vladimir Batov via Boost <boost_at_[hidden]> wrote:
>
> Given that it is policy-based I am hoping others might get interested writing additional policies within that framework such as COW or stack-based.

Can you use custom allocators for all policies? If so, then the behavior of the behavior of the "onstack" policy could be achieved by using a stack-based allocator, like the one from Howard, right?

https://howardhinnant.github.io/stack_alloc.html

I think it is very elegant if one can switch to a stack-based version without huge code-refactoring if the performance need arises (I am paraphrasing your documentation).

Best regards,
Hans


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk