action.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // action.hpp
  3. //
  4. // Copyright 2008 Eric Niebler. Distributed under the Boost
  5. // Software License, Version 1.0. (See accompanying file
  6. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. #ifndef BOOST_XPRESSIVE_DETAIL_CORE_ACTION_HPP_EAN_10_04_2005
  8. #define BOOST_XPRESSIVE_DETAIL_CORE_ACTION_HPP_EAN_10_04_2005
  9. // MS compatible compilers support #pragma once
  10. #if defined(_MSC_VER)
  11. # pragma once
  12. #endif
  13. #include <boost/xpressive/detail/detail_fwd.hpp>
  14. #include <boost/xpressive/match_results.hpp> // for type_info_less
  15. namespace boost { namespace xpressive { namespace detail
  16. {
  17. ///////////////////////////////////////////////////////////////////////////////
  18. // actionable
  19. //
  20. struct actionable
  21. {
  22. virtual ~actionable() {}
  23. virtual void execute(action_args_type *) const {}
  24. actionable()
  25. : next(0)
  26. {}
  27. actionable const *next;
  28. };
  29. }}} // namespace boost::xpressive::detail
  30. #endif