Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2000-03-13 10:30:30


> does that answer your question?

You seem to be confused between a pointer that is const and a pointer that
points to an object that is const.

A pointer that is const -- means the pointer can not be re-seated:

    T * const
    const scoped_ptr<T>

A pointer that points to an object that is const -- means the object can not
be modified (only const member functions, etc.):

    const T *
    scoped_ptr<const T>

A pointer that is const and points to an object that is const:

    const T * const
    const scoped_ptr<const T>

Your proposal seems to blur and mix these.

    -- Darin


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