Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 2000-03-24 08:31:24


From: Kevin Atkinson <kevinatk_at_[hidden]>
> On Fri, 24 Mar 2000, Dave Abrahams wrote:
>
> > on 3/24/00 12:11 AM, Kevin Atkinson at kevinatk_at_[hidden] wrote:
> >
> > > On Thu, 23 Mar 2000, Dave Abrahams wrote:
> > >
> > >> on 3/23/00 8:36 PM, Greg Colvin at gcolvin_at_[hidden] wrote:
> > >>
> > >>> Classes with deep copy semantics seem to me more like "smart references"
> > >>> than smart pointers, so I wonder if they should have a pointer-like
> > >>> interface at all.
> > >>
> > >> They sort of need to if you are going to do anything with the referent
> > >> object. I mean, you could use a "get()" function or something, but it's
> > >> cumbersome to say the least...

I have seen operator() used for this purpose.

> > > What about operator * and operator -> ?????

operator. would be nice.

> > Er, that would be the pointer-like interface which Greg alluded to.

Yep.

> Sorry, I misread that. Please forgive me. Also please forgive the
> wonderful typos that constantly appear in my emails.

Forgiven.


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