Boost logo

Boost :

From: Jaakko Jarvi (jajarvi_at_[hidden])
Date: 2001-11-20 15:56:22

> By the way, would be cool if tuples would use typelists so we have only one

It'd be good to get rid of redundant code.

Something like

Tuple<TYPELIST_N(A1, A2, ..., AN)> would

give a type analogous to

cons<A1, cons<A2, ..., cons<AN, null_type> > > ...

I guess we could get rid of a few metaprograms (like
tuples::length, tuples::element) by changing the internal representation.

Do you see other benefits?

Note, that the cons templates are part of the documented interface in
tuples, so it'd be more than just an internal change.


Boost list run by bdawes at, gregod at, cpdaniel at, john at