Back to home page

EIC code displayed by LXR

 
 

    


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 // Copyright Abel Sinkovics (abel@sinkovics.hu)  2013.
0005 // Distributed under the Boost Software License, Version 1.0.
0006 //    (See accompanying file LICENSE_1_0.txt or copy at
0007 //          http://www.boost.org/LICENSE_1_0.txt)
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