Boost logo

Boost Users :

Subject: [Boost-users] [statechart] StopWatch aborts on context<StopWatch>()
From: jeti (buskatze_at_[hidden])
Date: 2009-03-05 12:08:45

hi all

im pretty sure i just dont understand what context<>() really does and
how it works
reading the docs/tutorial doesnt seem to help me
so, can someone point me to a documentation for boost::statechart and
how to get a Pointer/Reference to the currents state_machine from a
what do i have to keep in mind?

just to give an example:
if i add the following line in the
boost/libs/statechart/examples/StopWatch/StopWatch.cpp file
      Running() : startTime_( std::time( 0 ) ) {
         context<StopWatch>(); // <<< added

it compiles and abort's if i try to start the stopwatch
i dont understand why? the state_machine is initialized and even the
docs say in its comments that i can use it to get the statemachine

but im sure i just miss something

any help on this would be great

thanks in adavance

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at