From 2164a1ddb5c8880c1aa0b2efd6ba39fd7e86bd3a Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Fri, 8 Dec 2006 14:21:48 +0000 Subject: Path and iterator fixes git-svn-id: http://pugixml.googlecode.com/svn/trunk@13 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/pugixml.hpp b/src/pugixml.hpp index e651b84..6f9bd6e 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -353,10 +353,12 @@ namespace pugi /// Use for shallow drill-downs. xml_node first_node(xml_node_type type) const; +#ifndef PUGIXML_NO_STL /// Compile the absolute node path from root as a text string. /// \param delimiter - Delimiter character to insert between element names. /// \return path string (e.g. with '/' as delimiter, '/document/.../this'. std::string path(char delimiter = '/') const; +#endif /// Search for a node by path. /// \param path - Path string; e.g. './foo/bar' (relative to node), '/foo/bar' (relative @@ -370,7 +372,10 @@ namespace pugi }; /// Child node iterator. - class xml_node_iterator: public std::iterator + class xml_node_iterator +#ifndef PUGIXML_NO_STL + : public std::iterator +#endif { friend class xml_node; @@ -404,7 +409,10 @@ namespace pugi }; /// Attribute iterator. - class xml_attribute_iterator: public std::iterator + class xml_attribute_iterator +#ifndef PUGIXML_NO_STL + : public std::iterator +#endif { friend class xml_node; -- cgit v1.2.3