mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
add Bool case
This commit is contained in:
@@ -104,6 +104,15 @@ class toml_node
|
||||
*result += " ]";
|
||||
return (result);
|
||||
}
|
||||
case BOOL:
|
||||
{
|
||||
std::string *result;
|
||||
if (value.boolean)
|
||||
result = new std::string("true");
|
||||
else
|
||||
result = new std::string("false");
|
||||
return (result);
|
||||
}
|
||||
default:
|
||||
return ( new std::string("Not implemented :)"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user