Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-04-12 09:24:10


From: "Vesa Karvonen" <vesa_karvonen_at_[hidden]>

> The BOOST_PP_TUPLE_ELEM() macro is implemented using macros that look
like
> this:
>
> // ...
> #define BOOST_PP_TUPLE2_ELEM0(A,B) A
> #define BOOST_PP_TUPLE2_ELEM0(A,B) B
>
> #define BOOST_PP_TUPLE3_ELEM0(A,B,C) A
> #define BOOST_PP_TUPLE3_ELEM1(A,B,C) B
> #define BOOST_PP_TUPLE3_ELEM2(A,B,C) C
> // ...
>
> It seems unlikely that the implementation would change, because the
> alternative would be a slower implementation of BOOST_PP_TUPLE_ELEM().
So,
> perhaps these macros should be documented.

...and renamed? Otherwise I'm going to be wondering who ELMO is all day
;-)


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