mirror of
https://github.com/RPCS3/yaml-cpp.git
synced 2026-01-31 01:25:20 +01: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