File indexing completed on 2025-01-19 09:47:44
0001
0002
0003
0004
0005
0006
0007 #ifndef BOOST_SPIRIT_QI_DETAIL_EXPECTATION_FAILURE_HPP
0008 #define BOOST_SPIRIT_QI_DETAIL_EXPECTATION_FAILURE_HPP
0009
0010 #if defined(_MSC_VER)
0011 #pragma once
0012 #endif
0013
0014 #include <boost/spirit/home/support/info.hpp>
0015
0016 #include <boost/config.hpp> // for BOOST_SYMBOL_VISIBLE
0017 #include <stdexcept>
0018
0019 namespace boost { namespace spirit { namespace qi {
0020 template <typename Iterator>
0021 struct BOOST_SYMBOL_VISIBLE expectation_failure : std::runtime_error
0022 {
0023 expectation_failure(Iterator first_, Iterator last_, info const& what)
0024 : std::runtime_error("boost::spirit::qi::expectation_failure")
0025 , first(first_), last(last_), what_(what)
0026 {}
0027 ~expectation_failure() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {}
0028
0029 Iterator first;
0030 Iterator last;
0031 info what_;
0032 };
0033 }}}
0034
0035 #endif