annotate DEPENDENCIES/generic/include/boost/spirit/home/karma/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 // Copyright (c) 2001-2011 Hartmut Kaiser
Chris@16 2 //
Chris@16 3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 5
Chris@16 6 #if !defined(BOOST_SPIRIT_WHAT_MAY_04_2007_0116PM)
Chris@16 7 #define BOOST_SPIRIT_WHAT_MAY_04_2007_0116PM
Chris@16 8
Chris@16 9 #if defined(_MSC_VER)
Chris@16 10 #pragma once
Chris@16 11 #endif
Chris@16 12
Chris@16 13 #include <boost/mpl/assert.hpp>
Chris@16 14 #include <boost/spirit/home/support/info.hpp>
Chris@16 15 #include <boost/spirit/home/karma/meta_compiler.hpp>
Chris@16 16
Chris@16 17 namespace boost { namespace spirit { namespace karma
Chris@16 18 {
Chris@16 19 template <typename Expr>
Chris@16 20 inline info what(Expr const& xpr)
Chris@16 21 {
Chris@16 22 // Report invalid expression error as early as possible.
Chris@16 23 // If you got an error_invalid_expression
Chris@16 24 // error message here, then the expression (expr) is not a
Chris@16 25 // valid spirit karma expression.
Chris@16 26 BOOST_SPIRIT_ASSERT_MATCH(karma::domain, Expr);
Chris@16 27 return compile<karma::domain>(xpr).what(unused);
Chris@16 28 }
Chris@16 29
Chris@16 30 }}}
Chris@16 31
Chris@16 32 #endif
Chris@16 33