|
Boost Users : |
Subject: Re: [Boost-users] A MPL loop..
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-07-11 12:09:45
AMDG
Frank Winter wrote:
> meta.cc:31: error: type/value mismatch at argument 2 in template
> parameter list for 'template<class C, class F1, class F2> struct
> boost::mpl::eval_if'
> meta.cc:31: error: expected a type, got 'loop::value'
>
> I marked line 31 with an asterix.
>
> Any further ideas?
> template< typename totalsize , typename maxelement , typename poolsize >
> struct loop
> {
> typedef typename mpl::times< totalsize , maxelement >::type part0;
> typedef typename mpl::times< part0 , mpl::int_< 3 > >::type part1;
> typedef typename mpl::greater< part1 , poolsize >::type gr;
> typedef typename mpl::divides< maxelement , mpl::int_< 2 > >::type
> maxelement2;
> * typedef typename mpl::eval_if< gr , loop< totalsize , maxelement2 ,
> poolsize >::value , maxelement >::type value;
typedef typename mpl::eval_if< gr , loop< totalsize , maxelement2 ,
poolsize >, maxelement >::type type;
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net