[Trilinos-Users] boost/std::shared_ptr interoperability
Bartlett, Roscoe A.
bartlettra at ornl.gov
Thu Jan 30 08:16:22 MST 2014
Nico and others,
You will want to copy the code for supporting the interoperability of Teuchos::RCP and boost::shared_ptr for use with std::shared_ptr I think.
I am currently on projects that don’t allow C++11 yet so you should expect little support for C++11 at this point. However, this might change in the next few months. At that point, I will update a bunch of this software to optionally take advantage of C++11 features and to provide interoperability with std::shared_ptr.
P.S. I remember being a grad student being able to use bleeding edge compilers and approaches. Those were good days in many respects.
> -----Original Message-----
> From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-
> bounces at software.sandia.gov] On Behalf Of Wojciech Smigaj
> Sent: Thursday, January 30, 2014 9:08 AM
> To: trilinos-users at software.sandia.gov
> Subject: Re: [Trilinos-Users] boost/std::shared_ptr interoperability
> On 30/01/2014 13:12, Nico Schlömer wrote:
> > Hi all,
> > is there any better way for creating an RCP from a
> boost/std::shared_ptr than
> > Teuchos::rcp(myBoostPtr.get(), false))
> > ?
> > Cheers,
> > Nico
> Hi Nico,
> yes, there are dedicated functions for doing this; see here:
> Best regards,
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
More information about the Trilinos-Users