Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-02-24 20:38:53


"Peter Dimov" <pdimov_at_[hidden]> writes:

> I've taken the liberty to apply the following patch to
> boost/lambda/detail/operator_return_type_traits.hpp:
>
<snip>
>
> // A is a nonreference type
> template <class A> struct contentsof_type {
> ! typedef typename boost::indirect_reference<A>::type type;

You're welcome ;-)

> // this is since the nullary () in lambda_functor is always instantiated
>
> This (hopefully) makes *_1 work for smart pointers.
>
> Feel free to revert the patch if it breaks something; I don't have a full
> regression test system set up.

-- 
Dave Abrahams
Boost Consulting
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