Added tags to Node

This commit is contained in:
Jesse Beder
2011-09-13 14:00:47 -05:00
parent 2dfccbb945
commit 0987b234c3
7 changed files with 35 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ namespace YAML
static bool decode(const Node& node, std::string& rhs) {
if(node.Type() != NodeType::Scalar)
return false;
rhs = node.scalar();
rhs = node.Scalar();
return true;
}
};
@@ -54,7 +54,7 @@ namespace YAML
static bool decode(const Node& node, type& rhs) {\
if(node.Type() != NodeType::Scalar)\
return false;\
std::stringstream stream(node.scalar());\
std::stringstream stream(node.Scalar());\
stream >> rhs;\
return !!stream;\
}\