From cb1d83d32a813f302a426a1666506f94dbddaca5 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Tue, 3 Apr 2012 04:47:14 +0000 Subject: Fixed xml_named_node_iterator category for MSVC6/7, IC8 and SunCC git-svn-id: http://pugixml.googlecode.com/svn/trunk@895 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 10 ++++++++++ src/pugixml.hpp | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 0476f50..80b8913 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -5386,6 +5386,11 @@ namespace std { return std::bidirectional_iterator_tag(); } + + PUGI__FN std::forward_iterator_tag _Iter_cat(const pugi::xml_named_node_iterator&) + { + return std::forward_iterator_tag(); + } } #endif @@ -5402,6 +5407,11 @@ namespace std { return std::bidirectional_iterator_tag(); } + + PUGI__FN std::forward_iterator_tag __iterator_category(const pugi::xml_named_node_iterator&) + { + return std::forward_iterator_tag(); + } } #endif diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 0ca0e6f..708a43b 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -1222,6 +1222,7 @@ namespace std // Workarounds for (non-standard) iterator category detection for older versions (MSVC7/IC8 and earlier) std::bidirectional_iterator_tag PUGIXML_FUNCTION _Iter_cat(const pugi::xml_node_iterator&); std::bidirectional_iterator_tag PUGIXML_FUNCTION _Iter_cat(const pugi::xml_attribute_iterator&); + std::forward_iterator_tag PUGIXML_FUNCTION _Iter_cat(const pugi::xml_named_node_iterator&); } #endif @@ -1231,6 +1232,7 @@ namespace std // Workarounds for (non-standard) iterator category detection std::bidirectional_iterator_tag PUGIXML_FUNCTION __iterator_category(const pugi::xml_node_iterator&); std::bidirectional_iterator_tag PUGIXML_FUNCTION __iterator_category(const pugi::xml_attribute_iterator&); + std::forward_iterator_tag PUGIXML_FUNCTION __iterator_category(const pugi::xml_named_node_iterator&); } #endif -- cgit v1.2.3