Subject: Re: [boost] [C++0x] Emulation of scoped enums
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-06-05 11:06:19
David Abrahams wrote:
> on Thu Mar 05 2009, Matt Calabrese <rivorus-AT-gmail.com> wrote:
>> The problem with using a PP sequence is that you are going to hit a
>> hard limit of 256 elements
> Hm, I was under the impression that PP SEQs weren't limited in that
> way. Am I missing something?
Nearly everything in the PP library has a hard limit of 256.
for instance, I see code like this for PP SEQs:
# define BOOST_PP_SEQ_ELEM_0(x) x, BOOST_PP_NIL
# define BOOST_PP_SEQ_ELEM_1(_) BOOST_PP_SEQ_ELEM_0
# define BOOST_PP_SEQ_ELEM_2(_) BOOST_PP_SEQ_ELEM_1
# define BOOST_PP_SEQ_ELEM_255(_) BOOST_PP_SEQ_ELEM_254
True, it's possible to create larger SEQs, but the PP library
can't process them.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk