
5 Dec
2008
5 Dec
'08
12:43 a.m.
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. Thanks, Jason

5 Dec
5 Dec
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
5980
Age (days ago)
5980
Last active (days ago)
3 comments
3 participants
participants (3)
-
Emil Dotchevski
-
Jason Cipriani
-
Steven Watanabe