Boost logo

Boost :

From: Hamish Mackenzie (boost_at_[hidden])
Date: 2001-11-27 17:20:16


On Tue, 2001-11-27 at 21:18, Hamish Mackenzie wrote:
> On Tue, 2001-11-27 at 20:49, Aleksey Gurtovoy wrote:
> > Hamish Mackenzie wrote:
> > > > typedef mpl::value_list<1,7,5,2,4,8,9,2,0,3,9,1> values;
> > >
> > > I think you must have left out some have you left out the
> > > int_t<N>s?
> >
> > Nope, the above line is exactly how the declaration of a value list looks in
> > MPL. A truly generic version would be probably "mpl::value_list<int,
> > 1,7,5,..>", though.
> >
>
> Cool how does it work? How can it tell you passed 12 arguments? Does
> it reserve a value for use as a default parameter?

I just had a look through the code and it appears to reserve LONG_MAX
(0x7ffffff on my system). null_t::value is a strange name for such
LONG_MAX. Perhaps you change it or add a comment to value_list.hpp so
others aren't similarly confused as to how it works.

Hamish
 


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