/*============================================================================== Copyright (c) 2001-2010 Joel de Guzman Copyright (c) 2010 Eric Niebler Copyright (c) 2010-2011 Thomas Heller 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_PHOENIX_CORE_ARGUMENT_HPP #define BOOST_PHOENIX_CORE_ARGUMENT_HPP #include #include #include #include #include namespace boost { namespace phoenix { //////////////////////////////////////////////////////////////////////////// // // argument // // function for evaluating argument placeholders like: _1 // //////////////////////////////////////////////////////////////////////////// template struct argument //: mpl::int_ { typedef typename mpl::int_::value_type value_type; static const value_type value = mpl::int_::value; bool operator==(argument) const { return true; } template bool operator==(argument) const { return false; } }; }} namespace boost { template struct is_placeholder > : mpl::int_ {}; } namespace boost { namespace phoenix { namespace expression { template struct argument : expression::terminal > { typedef typename expression::terminal >::type type; static const type make() { type const e = {{{}}}; return e; } }; } #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES) #include #else #if !defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) #include #else #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 2, line: 0, output: "preprocessed/argument_predefined_" BOOST_PHOENIX_LIMIT_STR ".hpp") #endif /*============================================================================== Copyright (c) 2001-2010 Joel de Guzman Copyright (c) 2010-2011 Thomas Heller 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) ==============================================================================*/ #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 1) #endif #ifdef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS #undef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE #endif #include #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS #undef BOOST_PHOENIX_NO_PREDEFINED_TERIMINALS_RESTORE #endif #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) #pragma wave option(output: null) #endif #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 2, line: 0, output: "preprocessed/argument_no_predefined_" BOOST_PHOENIX_LIMIT_STR ".hpp") #endif /*============================================================================== Copyright (c) 2001-2010 Joel de Guzman Copyright (c) 2010-2011 Thomas Heller 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) ==============================================================================*/ #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 1) #endif #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE #endif #include #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE #undef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS #undef BOOST_PHOENIX_NO_PREDEFINED_TERIMINALS_RESTORE #endif #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) #pragma wave option(output: null) #endif #endif #endif }} #endif