2 #ifndef BOOST_FSM_EVENT_INCLUDED
3 #define BOOST_FSM_EVENT_INCLUDED
5 // Copyright Aleksey Gurtovoy 2002-2004
7 // Distributed under the Boost Software License, Version 1.0.
8 // (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
11 // See http://www.boost.org/libs/mpl for documentation.
17 #include "base_event.hpp"
19 namespace fsm { namespace aux {
21 template< typename Derived >
26 typedef base_event base_t;
30 #if defined(BOOST_NO_CXX11_SMART_PTR)
32 virtual std::auto_ptr<base_event> do_clone() const
34 return std::auto_ptr<base_event>(
35 new Derived(static_cast<Derived const&>(*this))
41 virtual std::unique_ptr<base_event> do_clone() const
43 return std::unique_ptr<base_event>(
44 new Derived(static_cast<Derived const&>(*this))
54 #endif // BOOST_FSM_EVENT_INCLUDED