Chris@16: // Copyright (c) 2001-2011 Hartmut Kaiser Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: #if !defined(BOOST_SPIRIT_WHAT_MAY_04_2007_0116PM) Chris@16: #define BOOST_SPIRIT_WHAT_MAY_04_2007_0116PM Chris@16: Chris@16: #if defined(_MSC_VER) Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost { namespace spirit { namespace karma Chris@16: { Chris@16: template Chris@16: inline info what(Expr const& xpr) Chris@16: { Chris@16: // Report invalid expression error as early as possible. Chris@16: // If you got an error_invalid_expression Chris@16: // error message here, then the expression (expr) is not a Chris@16: // valid spirit karma expression. Chris@16: BOOST_SPIRIT_ASSERT_MATCH(karma::domain, Expr); Chris@16: return compile(xpr).what(unused); Chris@16: } Chris@16: Chris@16: }}} Chris@16: Chris@16: #endif Chris@16: