As you may know, I'm trying to use boost::statechart::events with
boost::variant, but I have the following problem. When I try to assign
a statechart::event to a variant I need to define operator=
for my class that is derived from the events.. and then when I call
the statechart::event::operator= the compiler throws the following
error:
/usr/include/boost/statechart/detail/rtti_policy.hpp: In member
function 'boost::statechart::detail::rtti_policy::rtti_base_type
& boost::statechart::detail::rtti_policy::rtti_base_type&
boost::statechart::detail::rtti_policy::rtti_derived_type::operator=(const
boost::statechart::detail::rtti_policy::rtti_derived_type&)':
/usr/include/boost/statechart/detail/rtti_policy.hpp:149: note:
synthesized method 'boost::statechart::event_base&
boost::statechart::event_base::operator=(const
boost::statechart::event_base&)' first required here
/usr/include/boost/statechart/event.hpp: In member function
'boost::statechart::event&)':
/usr/include/boost/statechart/event.hpp:32: note: synthesized method
'boost::statechart::detail::rtti_policy::rtti_derived_type&
boost::statechart::detail::rtti_policy::rtti_derived_type::operator=(const
boost::statechart::detail::rtti_policy::rtti_derived_type&)' first required here
evento.h: In member function 'evt_enviar_telegrama&
evt_enviar_telegrama::operator=(const evt_enviar_telegrama&)':
evento.h:64: note: synthesized method
'boost::statechart::event&)' first required here
(evt_enviar_telegrama is one of the types of the variant, and I'm
calling sc::event::operator=(t); line 64)
Any clues?
Thanks!