annotate DEPENDENCIES/generic/include/boost/spirit/home/qi/what.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 /*=============================================================================
Chris@16 2 Copyright (c) 2001-2011 Joel de Guzman
Chris@16 3
Chris@16 4 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 6 =============================================================================*/
Chris@16 7 #if !defined(BOOST_SPIRIT_WHAT_APRIL_21_2007_0732AM)
Chris@16 8 #define BOOST_SPIRIT_WHAT_APRIL_21_2007_0732AM
Chris@16 9
Chris@16 10 #if defined(_MSC_VER)
Chris@16 11 #pragma once
Chris@16 12 #endif
Chris@16 13
Chris@16 14 #include <boost/mpl/assert.hpp>
Chris@16 15 #include <boost/spirit/home/support/info.hpp>
Chris@16 16 #include <boost/spirit/home/qi/meta_compiler.hpp>
Chris@16 17
Chris@16 18 namespace boost { namespace spirit { namespace qi
Chris@16 19 {
Chris@16 20 template <typename Expr>
Chris@16 21 inline info what(Expr const& expr)
Chris@16 22 {
Chris@16 23 // Report invalid expression error as early as possible.
Chris@16 24 // If you got an error_expr_is_not_convertible_to_a_parser
Chris@16 25 // error message here, then the expression (expr) is not a
Chris@16 26 // valid spirit qi expression.
Chris@16 27 BOOST_SPIRIT_ASSERT_MATCH(qi::domain, Expr);
Chris@16 28 return compile<qi::domain>(expr).what(unused);
Chris@16 29 }
Chris@16 30 }}}
Chris@16 31
Chris@16 32 #endif
Chris@16 33