Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-10-04 17:04:33


From: "Larry Evans" <jcampbell3_at_[hidden]>

> David B. Held wrote:
>
> >"Schoenborn, Oliver" <Oliver.Schoenborn_at_[hidden]> wrote in message

> >Deriving from ptr<T const> is a weird beast. For instance, if you
declare
> >T* p_; in ptr<T const>, for some reason, it is not visible in ptr<T>,
even
> >
> I'm totally surprised!

It's a dependent base class. A conforming compiler will only find it with
qualification, e.g.

    this->p_

-Dave

-----------------------------------------------------------
           David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com


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