Hi Daniel,
> /** Makes a boost::shared_ptr from a ref-counted UNO object pointer.
> This makes sense if the object is used via UNO (implementing some X
> interface) and also internally using its implementation class, e.g.
Hmm. What's the advantage of this over using
::rtl::Reference< My
Hi Frank,
> Hmm. What's the advantage of this over using
> ::rtl::Reference< MyUnoImpl > ptr( new MyUnoImpl );
> xUno->callingUno( uno::Reference( ptr.get() ) );
> takeNonUnoPtr( ptr );
There is no advantage over the example you gave.
But it eases the implementation if you _already have_ a