1
General / How to use new C++11 unique and shared pointers?
« on: October 10, 2015, 09:49:24 pm »
I'm trying to update my game object manager to not just a straight pointer but to use new C++11 shared and unique pointers. I think I need to use a shared_ptr because I want to be able to get access to the objects and change them outside of the manager class. This code is based off of an older tutorial and I'm trying to make adjustments based on comments by the author about pointers. I'm also confused about why the Get() method is const. If I want to make changes to the objects inside the manager, do I need to remove this?