
8 Jul
2010
8 Jul
'10
6:42 p.m.
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.