
5 Dec
2008
5 Dec
'08
12:47 a.m.
On Thu, Dec 4, 2008 at 4:43 PM, Jason Cipriani
How do I represent "const Object *" as a shared_ptr? Using "const shared_ptr<Object>" is not right, it makes the shared_ptr const, not the Object.
Try shared_ptr<Object const> (or shared_ptr<const Object>) -- Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode