Boost logo

Boost Users :

From: Zoltan 'cad' Juhasz (cad_at_[hidden])
Date: 2007-03-05 08:34:05


Andreas Huber <ahd6974-spamgroupstrap <at> yahoo.com> writes:

Hi Andreas,
 
> > /opt/boost/include/boost-1_33_1/boost/statechart/transition.hpp:33:
> > error: invalid use of
> > 'boost::statechart::detail::no_context::no_function [with Event =
> > jm::ffcp::ev_init]' to form a pointer-to-member-function
> > /opt/boost/include/boost-1_33_1/boost/statechart/transition.hpp:33:
> > note: a qualified-id is required
>
> I suspect this is only part of the error message. Could you please
> provide the full message?

I've managed to reproduce that compiler error with gcc 4.1.0. I know that it is
not a supported platform, but maybe you are interested on this.

The code can be found here: http://usalug.org/pastebin/pastebin.php?show=392

The full compiler error was (gcc 4.1.0):

/boost_1_33_1/boost/statechart/transition.hpp: In instantiation
of 'default_state<int>':
/boost_1_33_1/boost/statechart/state_machine.hpp:691: instantiated from 'void
boost::statechart::state_machine<MostDerived, InitialState, Allocator,
ExceptionTranslator>::initial_construct() [with MostDerived =
sample_machine<int>, InitialState = default_state<int>, Allocator =
std::allocator<void>, ExceptionTranslator =
boost::statechart::null_exception_translator]'
/boost_1_33_1/boost/statechart/state_machine.hpp:706: instantiated
from 'boost::statechart::result boost::statechart::state_machine<MostDerived,
InitialState, Allocator,
ExceptionTranslator>::initial_construct_function::operator()() [with
MostDerived = sample_machine<int>, InitialState = default_state<int>, Allocator
= std::allocator<void>, ExceptionTranslator =
boost::statechart::null_exception_translator]'
/boost_1_33_1/boost/statechart/null_exception_translator.hpp:33: instantiated
from 'boost::statechart::result
boost::statechart::null_exception_translator::operator()(Action,
ExceptionEventHandler) [with Action =
boost::statechart::state_machine<sample_machine<int>, default_state<int>,
std::allocator<void>,
boost::statechart::null_exception_translator>::initial_construct_function,
ExceptionEventHandler = boost::statechart::state_machine<sample_machine<int>,
default_state<int>, std::allocator<void>,
boost::statechart::null_exception_translator>::exception_event_handler]'
/boost_1_33_1/boost/statechart/state_machine.hpp:253: instantiated from 'void
boost::statechart::state_machine<MostDerived, InitialState, Allocator,
ExceptionTranslator>::initiate() [with MostDerived = sample_machine<int>,
InitialState = default_state<int>, Allocator = std::allocator<void>,
ExceptionTranslator = boost::statechart::null_exception_translator]'
main.cpp:30: instantiated from here
/boost_1_33_1/boost/statechart/transition.hpp:33: error: invalid use
of 'boost::statechart::detail::no_context::no_function [with Event =
sample_event]' to form a pointer-to-member-function
/boost_1_33_1/boost/statechart/transition.hpp:33: note: a qualified-id is
required
make: *** [debug] Error 1

The same code can be compiled with gcc 3.2.3 just fine.

Best Regards,

--
Zoltan 'cad' Juhasz
http://people.inf.elte.hu/cad

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