Boost logo

Boost Users :

Subject: Re: [Boost-users] [preprocessor] Identity function for token concatenation
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2012-06-20 17:26:06


On 06/18/2012 10:07 PM, Jeffrey Lee Hellrung, Jr. wrote:
>
> Well, I learned a new trick
>
> Probably your hypothetical BOOST_PP_IDENTITY_WHEN_CAT would be clearer
> (if not more verbose).

Why not usign BOOST_PP_ENUM with a custom enumerator

#define M0(z,n,t) std::get<n>(t)

BOOST_PP_ENUM( nparams, M0, tup )

?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net