summaryrefslogtreecommitdiff
path: root/zenXml/zenxml/cvrt_struc.h
diff options
context:
space:
mode:
Diffstat (limited to 'zenXml/zenxml/cvrt_struc.h')
-rw-r--r--zenXml/zenxml/cvrt_struc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenXml/zenxml/cvrt_struc.h b/zenXml/zenxml/cvrt_struc.h
index 0bfe5996..40277556 100644
--- a/zenXml/zenxml/cvrt_struc.h
+++ b/zenXml/zenxml/cvrt_struc.h
@@ -124,9 +124,9 @@ struct ConvertElement<T, ValueType::stlContainer>
value.clear();
bool success = true;
- const auto itPair = input.getChildren("Item");
+ auto [it, itEnd] = input.getChildren();
- std::for_each(itPair.first, itPair.second, [&](const XmlElement& xmlChild)
+ std::for_each(it, itEnd, [&](const XmlElement& xmlChild)
{
typename T::value_type childVal;
if (zen::readStruc(xmlChild, childVal))
bgstack15