diff options
author | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-04-03 04:47:14 +0000 |
---|---|---|
committer | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-04-03 04:47:14 +0000 |
commit | cb1d83d32a813f302a426a1666506f94dbddaca5 (patch) | |
tree | 66a5396ad006444f89781e5671111098f290c4f9 | |
parent | a47bd44953e8544572127a2dce527c84aa8e1206 (diff) |
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
-rw-r--r-- | src/pugixml.cpp | 10 | ||||
-rw-r--r-- | src/pugixml.hpp | 2 |
2 files changed, 12 insertions, 0 deletions
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 |