diff --git a/src/make_enum.hpp b/src/make_enum.hpp index 63b16738912..9ec1b3cf157 100644 --- a/src/make_enum.hpp +++ b/src/make_enum.hpp @@ -179,6 +179,7 @@ PREFIX std::string CAT2(NAME,_to_string) (NAME val) \ { \ BOOST_PP_SEQ_FOR_EACH(EXPANDENUMFUNCTIONREV, , MAKEPAIRS(CONTENT)) \ assert(false && "Corrupted enum found with identifier NAME"); \ + throw 42; \ }