Boost logo

Boost Users :

Subject: Re: [Boost-users] Max Boost Fusion tuple parameters
From: Igor R (boost.lists_at_[hidden])
Date: 2013-06-11 10:31:29


>> What is the maximum Boost Fusion tuple param count?
>>
>> I was thinking of using it for about 200-300 elements.
>>
>> Anyone done this?
>>
>> I've heard of defines for this, but never actually *knew* of anyone
>> actually doing it.
>>
>> Thanks,
>> Rodrigo Madera
>
> I found some relevant information on this by:
>
> 1) going to:
> http://www.boost.org/doc/libs/1_53_0/libs/fusion/doc/html/index.html
> 2) then following the _Class template tuple_ link to:
> http://www.boost.org/doc/libs/1_53_0/libs/fusion/doc/html/fusion/tuple/class_template_tuple.html
> 3) then following the _vector_ link to:
> http://www.boost.org/doc/libs/1_53_0/libs/fusion/doc/html/fusion/container/vector.html
>
> 4) which said:
> You may define the preprocessor constant FUSION_MAX_VECTOR_SIZE before
> including any Fusion header to change the default. Example:
>
> #define FUSION_MAX_VECTOR_SIZE 20

Template argument number in a template declaration is limited by
compilers. For example, in MSVC10/11 it's limited to 64. So I doubt
setting FUSION_MAX_VECTOR_SIZE to 200 would work.


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