diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-25 21:46:07 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-25 21:46:07 +0000 |
commit | cd9bc5fa836fdf196dc65f7f75631f80849eed1e (patch) | |
tree | c9c055cd9da166c04d6113439e83f9966fe2b696 /src/pugixml.cpp | |
parent | 1a1cc6f7f4f1591f87be3bab4cb8886e145dd333 (diff) |
Added support for Sun C++ compiler
git-svn-id: http://pugixml.googlecode.com/svn/trunk@452 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r-- | src/pugixml.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index feece49..0706ef4 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -4516,6 +4516,22 @@ namespace std }
#endif
+#if !defined(PUGIXML_NO_STL) && defined(__SUNPRO_CC)
+namespace std
+{
+ // Workarounds for (non-standard) iterator category detection
+ std::bidirectional_iterator_tag __iterator_category(const pugi::xml_node_iterator&)
+ {
+ return std::bidirectional_iterator_tag();
+ }
+
+ std::bidirectional_iterator_tag __iterator_category(const pugi::xml_attribute_iterator&)
+ {
+ return std::bidirectional_iterator_tag();
+ }
+}
+#endif
+
/**
* Copyright (c) 2006-2010 Arseny Kapoulkine
*
|