Boost logo

Boost :

Subject: Re: [boost] Interest in a protected pointer
From: David Abrahams (dave_at_[hidden])
Date: 2009-02-10 11:32:46


on Tue Feb 10 2009, Ray Logel <rlogel-AT-navtechinc.com> wrote:

> Is there any interest in pointer wrapper similar to scoped_ptr or shared_ptr which can
> be used for pointer member variable which can the referenced value can't be modified
> by non const functions? This class wouldn't be responsible for any memory management
> and could have a shared pointer version as well.

Have you tried shared_ptr<T const> ?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk