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