1 /*=============================================================================
2 Copyright (c) 2005-2010 Joel de Guzman
3 Copyright (c) 2010 Eric Niebler
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #ifndef BOOST_PHOENIX_CORE_DOMAIN_HPP
9 #define BOOST_PHOENIX_CORE_DOMAIN_HPP
11 #include <boost/phoenix/core/limits.hpp>
12 #include <boost/proto/matches.hpp>
13 #include <boost/proto/transform/call.hpp>
14 #include <boost/proto/transform/when.hpp>
15 #include <boost/proto/domain.hpp>
17 namespace boost { namespace phoenix
19 template <typename Expr>
24 struct phoenix_generator
25 : proto::switch_<phoenix_generator>
28 BOOST_PROTO_USE_BASIC_EXPR()
30 template<typename Tag>
32 : proto::otherwise<proto::call<proto::pod_generator<actor>(proto::_)> >
36 struct phoenix_default_domain
38 proto::basic_default_generator
40 , proto::basic_default_domain
45 //: proto_base_domain::as_expr<T> // proto lambda example.
54 , proto::basic_default_domain
59 //: proto_base_domain::as_expr<T> // proto lambda example.