   Smartpointer yes or no for game programming?
  Hi Guys! that is the question! when use it!? all the time? some advice of use it in an engine??thanks in advance[Edited by - juglar on September 7, 2007 9:52:41 PM]
  If I understand your reason for asking, then yes. There's no type of good programming that isn't a yes for game programming.   ;  Unless you specifically have a good reason not to do so then yes.  Good programming practices should be used in all software development, including games and unless you have a reason something should be done differently for your specific project you should follow good programming practices to the best of your ability.While there are probably plenty of users here who would be able to give you good reasons they don't use smart pointers in thier project (and undoubtedly a lot of users with bad reasons) chances are good that these reasons do not apply to your project.   ;  ok thanks for  the fast replys... i have another question ... it's any problem or recmendation to use smart pointers with stl? i mean with a container like std:vector...;Quote:Original post by juglarok thanks for  the fast replys... i have another question ... it's any problem or recmendation to use smart pointers with stl? i mean with a container like std:vector...Any smart pointer which correctly supports copying should be ok. An example of a pointer where this is not the case is std::auto_ptr, which cannot be stored in containers. boost::shared_ptr is fine however.   