1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 =============================================================================*/
7 #if !defined(SPIRIT_EXPECTATION_FAILURE_JULY_19_2016)
8 #define SPIRIT_EXPECTATION_FAILURE_JULY_19_2016
14 #include <boost/spirit/home/support/info.hpp>
18 namespace boost { namespace spirit { namespace qi {
19 template <typename Iterator>
20 struct expectation_failure : std::runtime_error
22 expectation_failure(Iterator first_, Iterator last_, info const& what)
23 : std::runtime_error("boost::spirit::qi::expectation_failure")
24 , first(first_), last(last_), what_(what)
26 ~expectation_failure() throw() {}