17 Apr
2012
17 Apr
'12
7:48 a.m.
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