Boost logo

Boost :

From: Giovanni Bajo (giovannibajo_at_[hidden])
Date: 2002-07-09 04:58:07


----- Original Message -----
From: "David B. Held" <dheld_at_[hidden]>
Newsgroups: gmane.comp.lib.boost.devel
To: <boost_at_[hidden]>
Sent: Tuesday, July 09, 2002 11:00 AM
Subject: [boost] Re: Re: Re: shared_ptr and ->*

> It looks great! I'd like to see the shared_ptr guys comment on it, but I
> think we could use a boost::closure lib regardless. It would be the icing
on the
> cake if it integrated with shared_ptr. Now all it needs is documentation,
> and an implementation for "less capable" compilers. ;)

I'm not sure what this library would be useful for, as we already have _two_
bind implementations (Boost.Bind and Boost.Lambda), both with closure
capabilities. Boost.Bind even works on all compilers around, including the
cranky VC6. I understand that it solves the posted example quite nice, but I
reckon that, in real life, it could have been written to avoid the (ugly
imo) pointer to member function, just using the bind/function facilities,
and with increased genericity too. My view is that Boost should minimize the
slightly-different-libraries-with-overlapping-features syndrome.

On the other hand, I agree that an extension to shared_ptr that correctly
oveloads the ->* operator as shown might be handy.

Giovanni Bajo


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