Overloaded the iterator's -> operator.

This commit is contained in:
Jesse Beder 2008-07-02 01:32:19 +00:00
parent d56b54b34f
commit 901d16a96f
4 changed files with 18 additions and 17 deletions

View file

@ -37,6 +37,14 @@ namespace YAML
throw BadDereference();
}
const Node *Node::Iterator::operator -> ()
{
if(type == IT_SEQ)
return &**seqIter;
throw BadDereference();
}
const Node& Node::Iterator::first()
{
if(type == IT_MAP)