-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Larry Evans Sent: 09 February 2010 18:11 To: boost-users@lists.boost.org 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,