mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Added more natural ways to parse boolean values (based on the YAML spec).
(Thanks to Vadim Zeitlin)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user