diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-09-27 04:49:27 +0000 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-09-27 04:49:27 +0000 |
commit | 8e2aeb6f6059b6b4199fbdf7fced6a73bc0340ce (patch) | |
tree | a79d2139af8bf7d9b37233e0e4f316fd27731d48 /contrib | |
parent | ae99f000bbbbbe9bc3679224d484fc275e1d0553 (diff) |
contrib: Fix foreach.hpp for Boost 1.56.0
Include range/iterator.hpp to avoid compatibility issues in the future.
git-svn-id: https://pugixml.googlecode.com/svn/trunk@1026 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/foreach.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/foreach.hpp b/contrib/foreach.hpp index 3198077..c423151 100644 --- a/contrib/foreach.hpp +++ b/contrib/foreach.hpp @@ -7,6 +7,8 @@ #ifndef HEADER_PUGIXML_FOREACH_HPP #define HEADER_PUGIXML_FOREACH_HPP +#include <boost/range/iterator.hpp> + #include "pugixml.hpp" /* @@ -17,9 +19,6 @@ namespace boost { - template <typename> struct range_mutable_iterator; - template <typename> struct range_const_iterator; - template<> struct range_mutable_iterator<pugi::xml_node> { typedef pugi::xml_node::iterator type; @@ -52,12 +51,12 @@ namespace pugi { inline xml_object_range<xml_node_iterator> children(const pugi::xml_node& node) { - return node.children(); + return node.children(); } inline xml_object_range<xml_attribute_iterator> attributes(const pugi::xml_node& node) { - return node.attributes(); + return node.attributes(); } } |