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:
parent
efd1124cd7
commit
ee5e31e0bf
1 changed files with 2 additions and 2 deletions
|
@ -3429,7 +3429,7 @@ ircd::json::value::value(const char *const &str,
|
||||||
}
|
}
|
||||||
|
|
||||||
ircd::json::value::value(const string_view &sv)
|
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)
|
ircd::json::value::value(const std::string &s)
|
||||||
:value{s, json::type(s, std::nothrow)}
|
:value{s, json::type(s, strict, std::nothrow)}
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue