|
Boost Users : |
Subject: Re: [Boost-users] [Variant]Maximum Limit of types in variant and fusion vector
From: Edward Diener (eldiener_at_[hidden])
Date: 2015-06-18 11:56:43
On 6/18/2015 11:15 AM, Elizabeta wrote:
> Hi
>
> I want to use boost::variant with types more than 50. Until now I was using
> boost::variant with types up to 50 like this :
>
> #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
> #define BOOST_MPL_LIMIT_LIST_SIZE 50
> #define BOOST_MPL_LIMIT_VECTOR_SIZE 50
> #include <boost/variant.hpp>
>
> However , now if I change BOOST_MPL_LIMIT_LIST_SIZE and
> BOOST_MPL_LIMIT_VECTOR_SIZE to 100 it gives me compiler errors: Cannot open
> include file: 'boost/mpl/list/list100.hpp': No such file or directory
>
> So is 50 the maximum limit of types that can be put in the variant ?
>
> Also it seems that the maximum limit of types for vector fusion is 50, and
> can't increase that, and I want to have fusion vector for more than 50. Is
> this possible.
>
> Any suggestion
The latest version of MPL on the 'develop' branch provides the ability
for increasing MPL sizes for the maximum number of types to 100 or
beyond. Look at the readme.txt file in the 'preprocessed' sub-directory.
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