]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/metaparse/include/boost/metaparse/v1/define_error.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / metaparse / include / boost / metaparse / v1 / define_error.hpp
1 #ifndef BOOST_METAPARSE_V1_DEFINE_ERROR_HPP
2 #define BOOST_METAPARSE_V1_DEFINE_ERROR_HPP
3
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8
9 #include <string>
10
11 #ifdef BOOST_METAPARSE_V1_DEFINE_ERROR
12 # error BOOST_METAPARSE_V1_DEFINE_ERROR already defined
13 #endif
14 #define BOOST_METAPARSE_V1_DEFINE_ERROR(name, msg) \
15 struct name \
16 { \
17 typedef name type; \
18 static std::string get_value() \
19 { \
20 return msg; \
21 } \
22 }
23
24 #endif
25