Boost logo

Boost Users :

Subject: Re: [Boost-users] shared_ptr to const object
From: Jason Cipriani (jason.cipriani_at_[hidden])
Date: 2008-12-04 21:23:06


On Thu, Dec 4, 2008 at 7:58 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> AMDG
>
> Jason Cipriani wrote:
>>
>> 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.
>>
>
> shared_ptr<const Object>

Oh right. Thanks!

Jason


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net