Back to home page

EIC code displayed by LXR

 
 

    


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

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