0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::json: Use strict type analysis for value constructions.

This commit is contained in:
Jason Volk 2019-03-28 21:50:08 -07:00
parent efd1124cd7
commit ee5e31e0bf

View file

@ -3429,7 +3429,7 @@ ircd::json::value::value(const char *const &str,
}
ircd::json::value::value(const string_view &sv)
:value{sv, json::type(sv, std::nothrow)}
:value{sv, json::type(sv, strict, std::nothrow)}
{
}
@ -3445,7 +3445,7 @@ ircd::json::value::value(const string_view &sv,
}
ircd::json::value::value(const std::string &s)
:value{s, json::type(s, std::nothrow)}
:value{s, json::type(s, strict, std::nothrow)}
{
}