Boost logo

Boost Users :

From: Oliver.Kowalke_at_[hidden]
Date: 2006-08-31 07:46:26


Hello,
I get following error:

/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

if I try to compile:

#ifndef JM_FFCP_UNINITIALIZED_H
#define JM_FFCP_UNINITIALIZED_H

#include <boost/mpl/list.hpp>
//#include <boost/statechart/custom_reaction.hpp>
#include <boost/statechart/simple_state.hpp>
#include <boost/statechart/transition.hpp>

#include <jm/ffcp/events.h>
#include <jm/ffcp/proto.h>

namespace jm
{
        namespace ffcp
        {
                namespace mpl = boost::mpl;
                namespace sc = boost::statechart;

                template< typename SocketDeviceT > struct initialized;

                template< typename SocketDeviceT >
                struct uninitialized
                :
                public sc::simple_state<
                        uninitialized< SocketDeviceT >,
                        proto< SocketDeviceT >
>
                {
                        typedef mpl::list<
// sc::custom_reaction< ev_init >
                                sc::transition<
                                        ev_init,
                                        initialized< SocketDeviceT >
>
>
reactions;

                        uninitialized()
                        { uninitialized< SocketDeviceT
>::custom_static_type_ptr("uninitialized"); }

// sc::result react( ev_init const& ev)
// { return this->template transit< initialized<
SocketDeviceT > >(); }
                };
        }
}

#endif // JM_FFCP_UNINITIALIZED_H

Any hints?
regards,
Oliver


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