|
Boost Users : |
Subject: Re: [Boost-users] shared_ptr and container iterators
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2012-04-17 03:48:00
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.
-Thorsten
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