Boost logo

Boost Users :

Subject: Re: [Boost-users] generate structs with all combinations of members from a given struct
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-02-11 16:24:15


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Larry Evans
> Sent: 09 February 2010 18:11
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] generate structs with all combinations of
> members from a given struct
>
Hello

I have finished the generate with PP the source that I want to compile.
However, preprocessing takes 6 minutes for 1 cpp.

Clearly, this is unacceptable. There are redundant expansions of the
BOOST_PP_FOR and BOOST_PP_WHILE macros,
but PP does not allow "storing" results of expansions somewhere for reuse.
Can anything be done?

I noted also that moving from a BOOST_PP_SEQ_FOR_EACH() expansion to the
equivalent code that generates vertical repetition with LOCAL_ITERATE is
much slower, but more readable.
Can one get both vertical repetition and not slow?

Regards,


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