Boost logo

Boost Users :

Subject: Re: [Boost-users] [variant] 'which' out of range assertion
From: Igor R (boost.lists_at_[hidden])
Date: 2012-02-22 11:09:07


> You can get around this by increasing the maximum size a variant can handle,
> define the following symbols (or higher if you need):
>
> #define BOOST_MPL_LIMIT_LIST_SIZE 30
> #define BOOST_MPL_LIMIT_VECTOR_SIZE 30
> #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
>
> And it should work again.

Oh, I see...
But anyway, if I went beyond the limit, shouldn't it produce some
compile-time error, rather than failng in runtime in such a weird way
in debug mode only?

Thanks!


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