diff --git a/hoot-core/src/main/cpp/hoot/core/elements/ElementIterator.cpp b/hoot-core/src/main/cpp/hoot/core/elements/ElementIterator.cpp
index 21a8a37..1371253 100644
--- a/hoot-core/src/main/cpp/hoot/core/elements/ElementIterator.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/elements/ElementIterator.cpp
@@ -34,11 +34,11 @@ namespace hoot
bool ElementIterator::hasNext()
{
+ LOG_VART(_pending.empty());
if (_pending.empty())
{
_next();
}
-
return _pending.empty() == false;
}
@@ -58,6 +58,7 @@ const std::shared_ptr<Element>& ElementIterator::next()
_current = _pending.front();
_pending.pop_front();
}
+
return _current;
}