/////////////////////////////////////////////////////////////////////////////// /// \file proto.hpp /// The proto expression template compiler and supporting utilities. // // Copyright 2004 Eric Niebler. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_PROTO_HPP_EAN_04_01_2005 #define BOOST_PROTO_HPP_EAN_04_01_2005 #include #include #include #include #include namespace boost { namespace proto { /////////////////////////////////////////////////////////////////////////////// // compile_result template struct compile_result { typedef typename as_op::type op_type; typedef typename tag_type::type tag_type; typedef compiler compiler_type; typedef typename compiler_type::BOOST_NESTED_TEMPLATE apply::type type; }; /////////////////////////////////////////////////////////////////////////////// // compile template typename compile_result::type const compile(Op const &op, State const &state, Visitor &visitor, DomainTag) { typedef typename as_op::type op_type; typedef compiler::type, DomainTag> compiler; return compiler::call(as_op::make(op), state, visitor); } }} // namespace boost::proto #endif