File indexing completed on 2025-01-18 09:40:49
0001 #ifndef BOOST_METAPARSE_V1_DEFINE_ERROR_HPP
0002 #define BOOST_METAPARSE_V1_DEFINE_ERROR_HPP
0003
0004
0005
0006
0007
0008
0009 #include <string>
0010
0011 #ifdef BOOST_METAPARSE_V1_DEFINE_ERROR
0012 # error BOOST_METAPARSE_V1_DEFINE_ERROR already defined
0013 #endif
0014 #define BOOST_METAPARSE_V1_DEFINE_ERROR(name, msg) \
0015 struct name \
0016 { \
0017 typedef name type; \
0018 static std::string get_value() \
0019 { \
0020 return msg; \
0021 } \
0022 }
0023
0024 #endif
0025