Added more natural ways to parse boolean values (based on the YAML spec).

(Thanks to Vadim Zeitlin)
This commit is contained in:
Jesse Beder
2008-09-25 00:15:40 +00:00
parent 6e4317e37c
commit 14cdec770c
8 changed files with 103 additions and 10 deletions

View File

@@ -293,6 +293,14 @@ namespace YAML
return m_pContent->Read(c);
}
bool Node::Read(bool& b) const
{
if(!m_pContent)
return false;
return m_pContent->Read(b);
}
std::ostream& operator << (std::ostream& out, const Node& node)
{
node.Write(out, 0, false, false);