Re: [boost] [msm] need to increase the fusion set and map size to 30

So i added these two statements at the beginning, and this solved the problem.
# define FUSION_MAX_SET_SIZE 30 # define FUSION_MAX_VECTOR_SIZE 30
Perhaps we can add this somewhere in the doc.
Hi Kim, Maybe I should make this subject more visible. It is described here: http://www.boost.org/doc/libs/1_46_1/libs/msm/doc/HTML/ch05.html I think that FUSION_MAX_VECTOR_SIZE is actually enough, but it's only due to the fact that set is implemented in terms of vector (to be exact, as I only use fusion::set, FUSION_MAX_SET_SIZE ought to be enough, but it's not, so I suppose it's a fusion bug). Regards, Christophe

On 4/29/2011 2:08 AM, Christophe Henry wrote:
So i added these two statements at the beginning, and this solved the problem.
# define FUSION_MAX_SET_SIZE 30 # define FUSION_MAX_VECTOR_SIZE 30
Perhaps we can add this somewhere in the doc.
Hi Kim,
Maybe I should make this subject more visible. It is described here: http://www.boost.org/doc/libs/1_46_1/libs/msm/doc/HTML/ch05.html
I think that FUSION_MAX_VECTOR_SIZE is actually enough, but it's only due to the fact that set is implemented in terms of vector (to be exact, as I only use fusion::set, FUSION_MAX_SET_SIZE ought to be enough, but it's not, so I suppose it's a fusion bug).
Care to provide a patch? Regards, -- Joel de Guzman http://www.boostpro.com http://boost-spirit.com

So i added these two statements at the beginning, and this solved the problem.
# define FUSION_MAX_SET_SIZE 30 # define FUSION_MAX_VECTOR_SIZE 30
Perhaps we can add this somewhere in the doc.
Hi Kim,
Maybe I should make this subject more visible. It is described here: http://www.boost.org/doc/libs/1_46_1/libs/msm/doc/HTML/ch05.html
I think that FUSION_MAX_VECTOR_SIZE is actually enough, but it's only due to the fact that set is implemented in terms of vector (to be exact, as I only use fusion::set, FUSION_MAX_SET_SIZE ought to be enough, but it's not, so I suppose it's a fusion bug).
Care to provide a patch?
Regards, -- Joel de Guzman http://www.boostpro.com http://boost-spirit.com
I don't mind trying but frankly, you're more apt than me to do this and I had my own bugs to fix. I attach a patch which works for me but more, I can't guarantee. Regards, Christophe
participants (2)
-
Christophe Henry
-
Joel de Guzman