[Interest] QExplicitlySharedDataPointer Example

Konstantin Tokarev annulen at yandex.ru
Thu Jul 18 18:34:04 CEST 2013



18.07.2013, 20:30, "Michael Jackson" <imikejackson at gmail.com>:
> I tried to compile up an example of QExplicitlySharedDataPointer based off the example from the QSharedDataPointer documentation but I am receiving compile errors that just have me stumped at the moment. I am sure I am missing something but the docs seemed to indicate that I could just substitute QExplicitlySharedDataPointer for QSharedDataPointer and have this work. This is on OS X 10.8.4 with latest production Xcode 4.5.x.
>
> ********************************************
>  #include <QExplicitlySharedDataPointer>
>  #include <QString>
>
>  class EmployeeData : public QExplicitlySharedDataPointer

You need to inherit from QSharedData here.


-- 
Regards,
Konstantin



More information about the Interest mailing list