From 94e0c9205e6049c6b3295145af7fd39156e77543 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 3 Aug 2022 08:51:28 -0400 Subject: add upstream 11.23 --- zenXml/zenxml/dom.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'zenXml/zenxml') diff --git a/zenXml/zenxml/dom.h b/zenXml/zenxml/dom.h index 7a551f69..427e89f2 100644 --- a/zenXml/zenxml/dom.h +++ b/zenXml/zenxml/dom.h @@ -159,8 +159,8 @@ public: T& objectRef(const IterTy& it) const { return *(it->second); } }; - using ChildIter2 = PtrIter::iterator, XmlElement, AccessMapElement>; - using ChildIterConst2 = PtrIter::const_iterator, const XmlElement, AccessMapElement>; + using ChildIter2 = PtrIter::iterator, XmlElement, AccessMapElement>; + using ChildIterConst2 = PtrIter::const_iterator, const XmlElement, AccessMapElement>; ///Access all child elements with the given name via STL iterators. /** @@ -249,7 +249,10 @@ private: std::unordered_map::iterator> attributesByName; //alternate view for lookup std::list childElements_; //child elements in order of creation - std::unordered_multimap childElementsByName_; //alternate view for lookup + std::multimap childElementsByName_; //alternate view for lookup + //alternative: std::unordered_map => but let's keep std::map, so which guarantees consistent order of duplicate items! + //e.g. std::unordered_map on Linux inserts duplicates in reverse! + XmlElement* parent_ = nullptr; }; -- cgit