|
Boost Users : |
Subject: Re: [Boost-users] generate structs with all combinations of members from a given struct
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-02-10 08:09:33
On 02/09/10 16:12, Hicham Mouline wrote:
[snip]
> I have another problem for now.
>
> PP processing is starting to be slow, I need help to optimize it. Attached
> in the PP code.
>
> Also, in the above, all the Ss need to be generated only once.
> However, in multi_array<S..., N>, the N depends on the translation unit.
> I will have like 100 translation units, each with a different N.
>
> If I were to include the PP code to generate the Ss in each of the 100 trs,
> it would repeat the preprocessing uselessly.
> I need to run the first part of the PP just once, then the 2nd part of the
> PP that generates the multi_arrays for each of the 100 tr units.
>
> Is this possible?
What about precompiled headers? Microsoft provides them:
http://msdn.microsoft.com/en-us/library/szfdksca(VS.71).aspx
as well as gcc:
http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html
HTH.
-Larry
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