add Bool case

This commit is contained in:
3lswear
2022-01-12 12:39:16 +03:00
parent 9f3b12c986
commit 4c4873a25c

View File

@@ -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 :)"));
}