mercredi 29 juillet 2015

What smart pointers should I use in Qt C++11 project?

I've read this great question:

What C++ Smart Pointer Implementations are available?

and now my question is the following: I have Qt project supporting C++11, what smart pointers I may need? I feel like I may need std::unique_ptr and QSharedPointer - is it OK to mix pointers of different types, standard library and Qt in one project?

Or how can I replace std::unique_ptr by Qt means?

Aucun commentaire:

Enregistrer un commentaire