From 09bfb25f9038cc06c7e4241fb0dde91affd895fa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Oct 2021 12:12:33 +0200 Subject: Work around MSVC 16.11 /std:c++20 issue --- libxsd/xsd/cxx/xml/dom/serialization-header.txx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libxsd/xsd/cxx/xml/dom/serialization-header.txx b/libxsd/xsd/cxx/xml/dom/serialization-header.txx index 997dfe9..4b9ebdd 100644 --- a/libxsd/xsd/cxx/xml/dom/serialization-header.txx +++ b/libxsd/xsd/cxx/xml/dom/serialization-header.txx @@ -174,7 +174,9 @@ namespace xsd atts.push_back (a); } - for (std::vector::iterator i (atts.begin ()), + // Qualify DOMAttr to work around MSVC 16.11 /std:c++20 issue. + // + for (std::vector::iterator i (atts.begin ()), end (atts.end ()); i != end; ++i) { e.removeAttributeNode (*i); -- cgit v1.1