0
0
Fork 0
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:
Jason Volk 2017-10-15 21:25:03 -07:00
parent d0a8fc3a86
commit 87b62002dd

View file

@ -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