I currently have something like this:
QSharedPointer<t> Qsharedfoo;
Now I have a raw pointer to foo as well called rawfoo
. How can I make foo point own the raw pointer and start pointing to it. I know in boost with shared pointers we could use boost::make_shared
how do we do it with QSharedPointer
?
I want to do something like this:
Qsharedfoo = rawfoo