Jump to content
  • Advertisement
Sign in to follow this  
grill8

Questions about 3rd party safe pointers and game engines.

This topic is 3562 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!