Subject: Re: [Boost-users] [boost][msm] std::vector<MyStateMachine> generate stack overflow
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2011-05-18 19:13:50


2011/5/19 Klaim - Joël Lamotte <mjklaim_at_[hidden]>

>
>> I'd be quite surprised that it has much to do with the vector.
>
>
It's not the vector, it's the copy constructor. You can see the same problem
with :

    RealStateMachine sma;
    RealStateMachine smb( sma );

At the moment I'm not sure exactly what makes it a recursive call. Was the
generated state machine not thought to be copied, or did I made a mistake?

Joël Lamotte