File indexing completed on 2025-01-18 09:40:48
0001 #ifndef BOOST_METAPARSE_V1_ERROR_INDEX_OUT_OF_RANGE_HPP
0002 #define BOOST_METAPARSE_V1_ERROR_INDEX_OUT_OF_RANGE_HPP
0003
0004
0005
0006
0007
0008
0009 #include <iostream>
0010 #include <string>
0011 #include <sstream>
0012
0013 namespace boost
0014 {
0015 namespace metaparse
0016 {
0017 namespace v1
0018 {
0019 namespace error
0020 {
0021 template <int From, int To, int N>
0022 struct index_out_of_range
0023 {
0024 typedef index_out_of_range type;
0025
0026 static std::string get_value()
0027 {
0028 std::ostringstream s;
0029 s
0030 << "index (" << N << ") out of range ["
0031 << From << "-" << To << "]";
0032 return s.str();
0033 }
0034 };
0035 }
0036 }
0037 }
0038 }
0039
0040 #endif
0041