You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@brief macro to briefly define a mapping between an enum and JSON
277
272
@def NLOHMANN_JSON_SERIALIZE_ENUM_STRICT
@@ -292,7 +287,7 @@ NLOHMANN_JSON_NAMESPACE_END
292
287
}); \
293
288
if (it == std::end(m)) { \
294
289
auto value = static_cast<typename std::underlying_type<ENUM_TYPE>::type>(e); \
295
-
nlohmann::detail::throw_if_exceptions_enabled(nlohmann::detail::type_error::create(302, nlohmann::detail::concat("can't serialize - enum value ", std::to_string(value), " out of range"), &j)); \
290
+
nlohmann::detail::json_throw_from_serialize_macro(nlohmann::detail::type_error::create(302, nlohmann::detail::concat("can't serialize - enum value ", std::to_string(value), " out of range"), &j)); \
@brief macro to briefly define a mapping between an enum and JSON
2643
2638
@def NLOHMANN_JSON_SERIALIZE_ENUM_STRICT
@@ -2658,7 +2653,7 @@ NLOHMANN_JSON_NAMESPACE_END
2658
2653
}); \
2659
2654
if (it == std::end(m)) { \
2660
2655
auto value = static_cast<typename std::underlying_type<ENUM_TYPE>::type>(e); \
2661
-
nlohmann::detail::throw_if_exceptions_enabled(nlohmann::detail::type_error::create(302, nlohmann::detail::concat("can't serialize - enum value ", std::to_string(value), " out of range"), &j)); \
2656
+
nlohmann::detail::json_throw_from_serialize_macro(nlohmann::detail::type_error::create(302, nlohmann::detail::concat("can't serialize - enum value ", std::to_string(value), " out of range"), &j)); \
0 commit comments