[Qt-interest] Why is assignment of overloaded classes not possible with QScopedPointer?
Gabriel M. Beddingfield
gabrbedd at gmail.com
Sun Apr 25 13:54:30 CEST 2010
On Sun, 25 Apr 2010, Thiago Macieira wrote:
>> You are right, I completely forgot that this is a smart pointer...
>
> Not any smart pointer, this is a non-ref-counted smart pointer that takes
> ownership.
FWIW, even many ref-counted-shared smart pointers will throw
the same compiler error in this case. E.g.
boost::shared_ptr<T> you have to use .get() and .reset() to
access the raw pointer.
-gabriel
More information about the Qt-interest-old
mailing list