Boost logo

Boost Users :

Subject: Re: [Boost-users] Odd limitation in Fusion design ?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-07-08 18:21:50


On 07/08/10 14:43, John Dlugosz wrote:
>> Sounds like the if_recur template metaprogram found here:
>>
>> http://svn.boost.org/svn/boost/sandbox/variadic_templates/boost/mpl/if_
>> recur.hpp
>>
>> does what your asking, except for templates, not values.
>> I'd guess it could serve as a guide on how to do it for values.
>>
>> -regards,
>>
>> Larry
>>
>
> So you give it two functions, one to do on the way down and another to do on a the way up?
>
Yes. However, I'm not sure if the way-up function is the NowUp or Else
template parameter. I'd have to look at the
backus_turingaward_lecture.pdf reference to see which is which.


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