$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2002-04-14 16:24:18
David B. Held wrote:
> Perhaps if you could describe some places where
> a simpler typelist is not sufficient, you guys could come to some
> agreement on whether the additional complexity is justified.
I am afraid it's not about a "simpler typelist". MPL 'list' is as simple as
a portable type list implementation could be:
typedef null_node list0;
template< typename T0 >
struct list1 : list_node<T0, list0> {}
template< typename T0, typename T1 >
struct list2 : list_node< T0,list1<T1> > {}
template< typename T0, typename T1, .., typename Tn >
struct list##n : list_node< T0,list##n-1<T1,..,Tn> > {}
Aleksey