mirror of
https://github.com/RPCS3/yaml-cpp.git
synced 2026-01-31 01:25:20 +01:00
Added some parser exceptions.
This commit is contained in:
12
iterator.cpp
12
iterator.cpp
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user