Boost logo

Boost :

Subject: Re: [boost] BOOST_PP_ITERATE for huge mpl and fusion
From: Larry Evans (cppljevans_at_[hidden])
Date: 2012-03-20 09:15:27


On 03/20/12 06:51, Joel de Guzman wrote:
> On 3/20/2012 7:35 PM, Hite, Christopher wrote:
>> It may work for MPL I just upgraded boost and fusion now checks the limit and
>> complains:
>>
>> boost_1_49_0/boost/fusion/container/map/detail/preprocessed/as_map.hpp:21:2: error:
>> #error "FUSION_MAX_MAP_SIZE out of bounds for preprocessed headers"
>>
>> I spent about an hour trying to hack around that. It looks like I'll either have to
>> change boost or copy paste a good deal of fusion's details into a header.
>>
>> I realize you're not repsonsible for fusion, but as far as I can tell the other
>> libraries copied your techniques and if we figure this out for MPL we can apply it to
>> them too.
>
> No, Fusion does not use MPL's techniques at all. It does not use any scripts
> to generate the prepreocessed headers. Instead, Fusion uses Wave. Ditto for
> Phoenix-3. Going beyond the limts is very simple: simply #define
> BOOST_FUSION_DONT_USE_PREPROCESSED_FILES.
>
> Regards,
Hmm. Aleksey, could MPL use Fusion's technique? It sounds like having
a uniform way of generating headers would ease maintenance and maybe
avoid the pain that Christopher is now experiencing.

-regards,
Larry


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk