Collected pos, line, and column into a Mark struct

This commit is contained in:
jbeder
2009-07-27 02:56:18 +00:00
parent 25b5e9fec1
commit 7e26c711cf
17 changed files with 145 additions and 137 deletions

View File

@@ -15,7 +15,7 @@ namespace YAML
template <typename T>
inline void operator >> (const Node& node, T& value) {
if(!node.Read(value))
throw InvalidScalar(node.m_line, node.m_column);
throw InvalidScalar(node.m_mark);
}
template <typename T>
@@ -51,7 +51,7 @@ namespace YAML
}
}
throw MakeTypedKeyNotFound(m_line, m_column, key);
throw MakeTypedKeyNotFound(m_mark, key);
}
template <typename T>