> > IOW, is a QSharedPointer specialization feasible?
>
> To do what?
I meant, to have QSharedPointer<"derived QObject class"> using the
QObject control block, rather than creating a new one.
(in the same way this is done with QWeakPointer)
My whole reflexion was: I need to have shared ownership
On Friday, 15 June 2018 00:32:13 PDT Philippe wrote:
> QObject has built-in support to a reference count block to support QPointer
> (which is composed of a QWeakPointer)
>
> When doing QSharedPointer, is there a technical reason that
> prevents the QObject control block to be used, rather allocat
QObject has built-in support to a reference count block to support QPointer
(which is composed of a QWeakPointer)
When doing QSharedPointer, is there a technical reason that prevents
the QObject control block to be used,
rather allocating a new one, like it is necessary for common objects?
IOW,