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