From 8e2aeb6f6059b6b4199fbdf7fced6a73bc0340ce Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sat, 27 Sep 2014 04:49:27 +0000 Subject: 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 --- contrib/foreach.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'contrib') 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 + #include "pugixml.hpp" /* @@ -17,9 +19,6 @@ namespace boost { - template struct range_mutable_iterator; - template struct range_const_iterator; - template<> struct range_mutable_iterator { typedef pugi::xml_node::iterator type; @@ -52,12 +51,12 @@ namespace pugi { inline xml_object_range children(const pugi::xml_node& node) { - return node.children(); + return node.children(); } inline xml_object_range attributes(const pugi::xml_node& node) { - return node.attributes(); + return node.attributes(); } } -- cgit v1.2.3