Boost logo

Boost :

From: Vesa Karvonen (vesa_karvonen_at_[hidden])
Date: 2002-04-18 12:21:55


"John Harris (TT)":
> I love the BOOST_PP_TUPLE* macros, but the limit of 16 is restrictive.
>
> I wrote a script to generate the code that should be added to
tuple/eat.hpp,
> tuple/elem.hpp, and tuple/to_list.hpp for an arbitrary limit.
>
> Uh, and here it is:
>
> $start=17; # start at 17, boost 1.27.0 defines up to 16
> $end = 100; # you might want something less :-)

Ok... Are you sure about this? If you make the tuple limit 100, then the
size of tuple/elem.hpp would be about 0.5Mb and it would define about 5000
macros. That would probably be rather taxing on the compiler.

Could you elaborate on why the limit of 16 is restrictive?
Couldn't you use preprocessor lists instead?

Anyway, if there really is genuine need, I'd be happy to extend the tuple
limit to, say, 32. Going much beyond that just doesn't make sense to me.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk