Subject: Re: [boost] [mpl] is there a or_seq like logical metafunction?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2009-02-07 14:58:17
On 02/07/09 13:29, vicente.botet wrote:
> ----- Original Message -----
> From: "Larry Evans" <cppljevans_at_[hidden]>
> To: <boost_at_[hidden]>
> Sent: Saturday, February 07, 2009 8:24 PM
> Subject: Re: [boost] [mpl] is there a or_seq like logical metafunction?
>> The attached (with the similar or.hpp) passes the logical.cpp test.
> Wow, I didn't think that this thread was yet alive.
> After suggestion of I don't remember who, I have implemented it as
> /* Calculate the mlp::and_ of a sequence of nullary logical metafunctions.*/
> template <typename Seq>
> struct and_seq : boost::is_same<typename mpl::find_if<Seq, mpl::not_<mpl::_> >::type,
> typename mpl::end<Seq>::type>
> If there are better ways to do that, you don't tink that this must be encapsulated in the library? Why not add these metafunctions in Boost.MPL?
OOPS. I misread the post. I was just thinking of and_ and or_.
I missed the "sequence of nullary logical metafunctions".
Sorry for noise. It just seemed so similar I neglected
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk