Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2004-10-13 19:51:02


On 10/13/2004 07:26 PM, Aleksey Gurtovoy wrote:
[snip]
>
> If you provide me with the [location of the] code you're trying to
> compile, I'll try to take a quick look at it.
>
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_
>::type type;
         };

I replaced the apply_if with eval_if and got the previously mentioned
errors.

Thanks for the help.


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