$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Giovanni Bajo (giovannibajo_at_[hidden])
Date: 2002-07-09 14:27:26
----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, July 09, 2002 8:34 PM
Subject: Re: [boost] shared_ptr and ->*
> The function<> is used only to name the return type
Nice trick, didn't think of it.
> (and to get around the forwarding problem - bind() things don't take
rvalues as arguments.)
which is annoying, in times. I suppose there is no way to get around this
limitation, right?
> In a better C++ this would have been
>
> template<class T, class R, class U> typeof( bind(pmf, p) )
> operator->*(shared_ptr<T> const & p, R (U::*pmf) ())
> {
> return bind(pmf, p);
> }
> but I digress. ;-)
Yeah, even if in this specific case we still get the rvalue issues, in this
way, that doesn't match the expected operator->* syntax. But typeof() would
be so cool ...
Giovanni Bajo