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
271
@def NLOHMANN_JSON_SERIALIZE_ENUM_STRICT
@@ -292,7 +286,7 @@ NLOHMANN_JSON_NAMESPACE_END
292
286
}); \
293
287
if (it == std::end(m)) { \
294
288
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)); \
289
+
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