Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-19 09:47:47

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 =============================================================================*/
0007 #if !defined(BOOST_SPIRIT_WHAT_APRIL_21_2007_0732AM)
0008 #define BOOST_SPIRIT_WHAT_APRIL_21_2007_0732AM
0009 
0010 #if defined(_MSC_VER)
0011 #pragma once
0012 #endif
0013 
0014 #include <boost/mpl/assert.hpp>
0015 #include <boost/spirit/home/support/info.hpp>
0016 #include <boost/spirit/home/qi/meta_compiler.hpp>
0017 
0018 namespace boost { namespace spirit { namespace qi
0019 {
0020     template <typename Expr>
0021     inline info what(Expr const& expr)
0022     {
0023         // Report invalid expression error as early as possible.
0024         // If you got an error_expr_is_not_convertible_to_a_parser
0025         // error message here, then the expression (expr) is not a
0026         // valid spirit qi expression.
0027         BOOST_SPIRIT_ASSERT_MATCH(qi::domain, Expr);
0028         return compile<qi::domain>(expr).what(unused);
0029     }
0030 }}}
0031 
0032 #endif
0033