
10 Feb
2009
10 Feb
'09
4:43 p.m.
AMDG David Abrahams wrote:
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> ?
I think the idea is to propagate pointer constness to the pointee. dereferencing shared_ptr<T const> always gives const T& In Christ, Steven Watanabe