
1 Sep
2007
1 Sep
'07
6:02 p.m.
On 09/01/07 11:44, Sebastian Redl wrote:
Marco Costalba wrote:
I think it is possible to avoid the macros:
It is. See http://www.boost.org/libs/mpl/doc/refmanual/list.html for what's already in Boost. There aren't many tricks not used in the MPL. Furthermore, it is possible to use macros to generate the templates and specializations necessary for this trick. See the MPL sources and the PP library if this interests you.
Sebastian Redl Doug Gregor's variadic template compiler can be used to do this without any macros (mpl uses the boost_pp library). There is a partial translation of mpl to use this compiler in the boost vault under variadic_templates.