|
Boost Users : |
Subject: Re: [Boost-users] [preprocessor] How to transform sequence into sequence of tuples.
From: Mostafa (mostafa_working_away_at_[hidden])
Date: 2013-04-11 04:46:40
On Wed, 10 Apr 2013 12:58:59 -0700, Mostafa
<mostafa_working_away_at_[hidden]> wrote:
> How would I go about doing the following transformation:
>
> (a)(b)(c)(d) -> (a, b)(c, d)
>
Actually, I got the mapping crosswired. I want to transform a sequence
into a tuple of "sequences", ie:
(a)(b)(c)(d)(e)(f) -> (a b, c d, e f)
I know there is BOOST_PP_SEQ_TO_TUPLE, and I know how to modify it's
implementation to do what I want, but I rather use Boost.PP api's to
achieve the desired the goal.
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