Boost logo

Boost :

From: Giovanni Bajo (giovannibajo_at_[hidden])
Date: 2002-07-08 17:46:30


----- Original Message -----
From: "Paul Mensonides" <pmenso57_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, July 08, 2002 11:39 PM
Subject: Re: [boost] shared_ptr and ->*

> I'm sure other boosters can do better than this by fiddling with type
traits,
> etc.. This is just an example of how it *can* be done.

Yes, I'd assume that bind() already covers all the above code so that:

template <class U>
[something] operator->*(U ptr)
{
    return bind(ptr, m_obj);
}

should be enough, once you find a fast way to propagate the return value
(maybe using some bind implementation details?)

Giovanni Bajo


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