update single include

This commit is contained in:
Nissim Armand Ben Danan 2024-11-20 12:26:02 +02:00 committed by GitHub
parent e58331aec6
commit 8045369d76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21637,6 +21637,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
return default_value; return default_value;
} }
else if (JSON_HEDLEY_LIKELY(is_null()))
{
return default_value;
}
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this)); JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
} }
@ -21662,6 +21666,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
return std::forward<ValueType>(default_value); return std::forward<ValueType>(default_value);
} }
else if (JSON_HEDLEY_LIKELY(is_null()))
{
return std::forward<ValueType>(default_value);
}
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this)); JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
} }
@ -21688,6 +21696,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
return default_value; return default_value;
} }
else if (JSON_HEDLEY_LIKELY(is_null()))
{
return default_value;
}
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this)); JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
} }
@ -21715,6 +21727,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
return std::forward<ValueType>(default_value); return std::forward<ValueType>(default_value);
} }
else if (JSON_HEDLEY_LIKELY(is_null()))
{
return std::forward<ValueType>(default_value);
}
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this)); JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
} }
@ -21739,6 +21755,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
return default_value; return default_value;
} }
} }
else if (JSON_HEDLEY_LIKELY(is_null()))
{
return default_value;
}
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this)); JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
} }
@ -21764,6 +21784,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
return std::forward<ValueType>(default_value); return std::forward<ValueType>(default_value);
} }
} }
else if (JSON_HEDLEY_LIKELY(is_null()))
{
return std::forward<ValueType>(default_value);
}
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this)); JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
} }