9 Oct
2014
9 Oct
'14
8:23 p.m.
Thorsten Ottosen
On 09-10-2014 11:50, Akim Demaille wrote:
I think it now does what I want, if you're curious:
Just took a quick look. I would prefer if you used scoped_ptr inside poly_holder.
Hi Thorsten, poly_holder has a very different semantics than scoped_ptr's: 1. Constructing from a const Base& does not involve heap allocation. 2. Copying involves either heap allocation and cloning if the copied elements didn't allocate, or ownership transfer otherwise. Joaquín M López Muñoz Telefónica