summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2006-12-08 14:21:48 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2006-12-08 14:21:48 +0000
commit2164a1ddb5c8880c1aa0b2efd6ba39fd7e86bd3a (patch)
treefaa1a86cabc4b4d79a5895f2553f39f90048aa04
parent2fdfe430a209a851fdd5a22377031099e6c30fe6 (diff)
Path and iterator fixes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@13 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--src/pugixml.hpp12
1 files changed, 10 insertions, 2 deletions
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<std::bidirectional_iterator_tag, const xml_node>
+ class xml_node_iterator
+#ifndef PUGIXML_NO_STL
+ : public std::iterator<std::bidirectional_iterator_tag, const xml_node>
+#endif
{
friend class xml_node;
@@ -404,7 +409,10 @@ namespace pugi
};
/// Attribute iterator.
- class xml_attribute_iterator: public std::iterator<std::bidirectional_iterator_tag, const xml_attribute>
+ class xml_attribute_iterator
+#ifndef PUGIXML_NO_STL
+ : public std::iterator<std::bidirectional_iterator_tag, const xml_attribute>
+#endif
{
friend class xml_node;