Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2004-10-13 20:32:57


Larry Evans writes:
> It's here:
>
> http://cvs.sourceforge.net/viewcvs.py/boost-sandbox/boost-sandbox/boost/managed_ptr/smart_ptr.hpp?rev=1.2&view=auto
>
> specifically:
>
> template <class Sequence, class Category, class Default>
> struct get_policy
> {
> typedef typename mpl::find_if<
> Sequence, is_same<get_category<_>, Category>
> >::type iter_;
> typedef typename mpl::end<Sequence>::type last_;
> typedef typename mpl::apply_if<
> typename is_same<iter_, last_>::type,
> mpl::identity<Default>, iter_
                                           ^^^^^
                                           mpl::deref<iter_>

> >::type type;
> };
>
> I replaced the apply_if with eval_if and got the previously mentioned
> errors.

The above should help.

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

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