Added some parser exceptions.

This commit is contained in:
beder
2008-07-02 05:00:32 +00:00
parent 807045bc14
commit 620c322df5
9 changed files with 201 additions and 30 deletions

View File

@@ -29,6 +29,18 @@ namespace YAML
return *this;
}
Node::Iterator Node::Iterator::operator ++ (int)
{
Iterator temp = *this;
if(type == IT_SEQ)
++seqIter;
else if(type == IT_MAP)
++mapIter;
return temp;
}
const Node& Node::Iterator::operator * ()
{
if(type == IT_SEQ)