Boost logo

Boost Users :

Subject: Re: [Boost-users] Example of Fusion error: wrong number of template arguments (30, should be 20)
From: Joel de Guzman (djowel_at_[hidden])
Date: 2012-08-30 22:48:51


On 8/8/2012 12:46 AM, Joost Kraaijeveld wrote:
> This is the smallest example I could create that triggers the error:
>
> /**********************************/
> #define FUSION_MAX_VECTOR_SIZE 30
>
> #include <boost/fusion/container.hpp>
>
> int main( int argc,char** argv)
> {
> return 0;
> }
>

If you want to go beyond the limits, You'll have to tweak *both*
Fusion *and* MPL.

Define these PP constants before anything else:

#define FUSION_MAX_VECTOR_SIZE 30
#define BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
#define BOOST_MPL_LIMIT_VECTOR_SIZE 30

HTH.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://boost-spirit.com

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