as_actor.hpp 798 B

12345678910111213141516171819202122232425262728
  1. /*=============================================================================
  2. Copyright (c) 2001-2007 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #ifndef BOOST_PHOENIX_CORE_AS_ACTOR_HPP
  7. #define BOOST_PHOENIX_CORE_AS_ACTOR_HPP
  8. #include <boost/phoenix/core/actor.hpp>
  9. #include <boost/fusion/support/void.hpp>
  10. namespace boost { namespace phoenix
  11. {
  12. template <typename T, typename U = typename is_actor<T>::type >
  13. struct as_actor
  14. {
  15. typedef T type;
  16. static type const &
  17. convert(T const & t)
  18. {
  19. return t;
  20. }
  21. };
  22. }}
  23. #endif