
18 Mar
2010
18 Mar
'10
8:37 a.m.
Rutger ter Borg schrieb:
Rhys Ulerich wrote:
Good morning,
0) the "only" run-time stuff in the MPL is mpl::for_each.
Chapter 9 of the book c++ template metaprogramming from Abrahams and Gurtovoy gives an explanation about mpl::for_each with type visitation. hth Cheers, Kim
1) See attached, I guess this could be considered a bit cleaner. 2) Probably easiest by writing a function that does the type deduction for you.