Abdelrazak Younes wrote:
> I will check the documentation on scoped_ptr and I will remove the
> scoped_ptr on Clipboard. But ultimately, the job of destruction should
> be left to the frontends.

scoped_ptr is like auto_ptr, boost docs:

The scoped_ptr template is a simple solution for simple needs.
It supplies a basic "resource acquisition is initialization" facility,
without shared-ownership or transfer-of-ownership semantics.
Both its name and enforcement of semantics (by being  noncopyable)
signal its intent to retain ownership solely within the current scope.
Because it is noncopyable, it is safer than shared_ptr or std::auto_ptr
for pointers which should not be copied.

Reply via email to