Philipp Lohmann wrote:
Hi,

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:

  class Something: public cppu::WeakImplHelper1<XSomething> { ... };
  rtl::Reference<Something> s(new Something);
  s->privateNonUnoFunction();
  css::uno::Reference<XSomething> x(s.get());

etc.

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to