|
Boost Users : |
Subject: Re: [Boost-users] shared_ptr and container iterators
From: Johannes Totz (johannes_at_[hidden])
Date: 2012-04-17 11:42:45
On 17/04/2012 08:48, Thorsten Ottosen wrote:
> On 16-04-2012 16:19, Johannes Totz wrote:
>> Hi all,
>>
>> just started playing with boost::shared_ptr.
>> How do I get a const iterator pointing to a shared_ptr pointing to a
>> const object? See code below, I'd like to prevent a MyItem being changed
>> through const iterators.
>
> Maybe Boost.PtrContainer can be used. It doesn't allow shared ownership
> though.
Thanks for suggestion. All pointed-to objects are shared though...
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