Boost logo

Boost Users :

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


On 07/08/10 12:04, 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
>>
>
> How does it know when to stop? Does the supplied if_recur have to include a "end" test?
>
The Recur template arg to the if_recur template provides the "end" test.
You might find the backus_turingaward_lecture.pdf reference
mentioned in the code comments helpful.


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