Chris@16: /*============================================================================= Chris@16: Copyright (c) 2001-2011 Joel de Guzman Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: =============================================================================*/ Chris@16: #if !defined(BOOST_SPIRIT_WHAT_APRIL_21_2007_0732AM) Chris@16: #define BOOST_SPIRIT_WHAT_APRIL_21_2007_0732AM Chris@16: Chris@16: #if defined(_MSC_VER) Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost { namespace spirit { namespace qi Chris@16: { Chris@16: template Chris@16: inline info what(Expr const& expr) Chris@16: { Chris@16: // Report invalid expression error as early as possible. Chris@16: // If you got an error_expr_is_not_convertible_to_a_parser Chris@16: // error message here, then the expression (expr) is not a Chris@16: // valid spirit qi expression. Chris@16: BOOST_SPIRIT_ASSERT_MATCH(qi::domain, Expr); Chris@16: return compile(expr).what(unused); Chris@16: } Chris@16: }}} Chris@16: Chris@16: #endif Chris@16: