/*============================================================================= Copyright (c) 2001-2007 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #if !defined(SPIRIT_EXPECT_APRIL_29_2007_0445PM) #define SPIRIT_EXPECT_APRIL_29_2007_0445PM #include #include namespace boost { namespace spirit { namespace qi { template struct expectation_failure { Iterator first; Iterator last; std::string what; }; struct expect : sequence_base { friend struct sequence_base; private: template static detail::expect_function< Iterator, Context, Skipper , expectation_failure > fail_function( Iterator& first, Iterator const& last , Context& context, Skipper const& skipper) { return detail::expect_function< Iterator, Context, Skipper, expectation_failure > (first, last, context, skipper); } static std::string what_() { return "expect["; } }; }}} #endif