Hubert Figuiere <[EMAIL PROTECTED]> writes: > On Wed, 2007-07-11 at 18:22 +0200, Stephan Bergmann wrote: > > Philipp Lohmann wrote: > > > just as a side note: which added value does rtl::Reference provide over > > > boost::shared_ptr anyway ? > > > > rtl::Reference<T> requirs T to have acquire() and release(), whereas > > boost::shared_ptr<T> manages the refcount externally . That makes > > rtl::Reference a good fit when holding references to C++ implementations > > of UNO objects: > > You mean like boost::intrusive_ptr<> ? (but with a different interface) > Exactly. Mixing shared_ptr and uno::Reference is safely possible on the same object, but I do find the rtl::Reference solution cleaner. Saves on heap space, on top of that.
Cheers, -- Thorsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]