[Modularization] unique_ptr (interprocess/smart_ptr) and SmartPtr

Hi, what about moving|boost/interprocess/smart_ptr/* to module SmartPtr?| || |||| |||Vicente| ||

El 04/06/2014 13:28, Vicente J. Botet Escriba escribió:
Hi,
what about moving|boost/interprocess/smart_ptr/* to module SmartPtr?|
Maybe they are not generic enough. I think the only half-generic type is unique_ptr, but we should have a better implementation in SmartPtr and Interprocess should depend on that. boost::interprocess::shared_ptr is a special case since a non-polymorphic implementation is needed to place reference counted smart pointers in shared memory. boost::scoped_ptr could be updated to support non-trivial pointer types and Interprocess could depend on that implementation. Best, Ion

Le 05/06/14 00:27, Ion Gaztañaga a écrit :
El 04/06/2014 13:28, Vicente J. Botet Escriba escribió:
Hi,
what about moving|boost/interprocess/smart_ptr/* to module SmartPtr?|
Maybe they are not generic enough.
I think the only half-generic type is unique_ptr, but we should have a better implementation in SmartPtr and Interprocess should depend on that.
boost::interprocess::shared_ptr is a special case since a non-polymorphic implementation is needed to place reference counted smart pointers in shared memory.
boost::scoped_ptr could be updated to support non-trivial pointer types and Interprocess could depend on that implementation.
Ok, let start by unique_ptr. Peter, would you accept a new unique_ptr in SmartPtr? Vicente

On 06/06/2014 07:24 PM, Vicente J. Botet Escriba wrote:
Ok, let start by unique_ptr. Peter, would you accept a new unique_ptr in SmartPtr?
We are probably closer to a generic version with this one: https://github.com/helloworld922/unique_ptr See also the previous thread about it: http://lists.boost.org/Archives/boost/2013/08/205486.php
participants (3)
-
Bjorn Reese
-
Ion Gaztañaga
-
Vicente J. Botet Escriba