Questions about 3rd party safe pointers and game engines.
Hello,
I have questions about good 3rd party safe pointers.
I want to have a good reliable set of safe pointers, mostly for DirectX Com pointers available in my game engine.
Question)
Should I use CComPtr CAutoPtr etc. in the ATL library ... or boost ... or should I write my own? What would you recommend? I will be using DirectX and C++.
Thank you for your help.
Jeremy
Writing your own is certainly going to be overkill and I would not recommend it unless you need to do some special things with the pointers.
Why do you need 3rd party safe pointers; Why not use std::auto_ptr?
Why do you need 3rd party safe pointers; Why not use std::auto_ptr?
I'd suggest using CComPtr for your COM interfaces, and the boost/tr1 smart pointers for everything else. boost::shared_ptr can be extremely useful.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement