mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 00:10:59 +01:00
fixup! ircd::json: Better bool related conversions etc.
This commit is contained in:
parent
d0a8fc3a86
commit
87b62002dd
1 changed files with 3 additions and 1 deletions
|
@ -415,7 +415,9 @@ ircd::lex_cast(long double i,
|
|||
template<> bool
|
||||
ircd::lex_cast(const string_view &s)
|
||||
{
|
||||
return _lex_cast<bool>(s);
|
||||
return s == "true"? true:
|
||||
s == "false"? false:
|
||||
_lex_cast<bool>(s);
|
||||
}
|
||||
|
||||
template<> int8_t
|
||||
|
|
Loading…
Reference in a new issue