diff options
author | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-14 03:40:06 +0000 |
---|---|---|
committer | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-14 03:40:06 +0000 |
commit | cf779955d9c77a35eb50296c7d00306a8900c828 (patch) | |
tree | 890f034dd422df90f0a2e7268c40991d0936a54f /src/pugixml.hpp | |
parent | 2f6baa1005bdd5f94d22ce7270237d5f45120f71 (diff) |
Fixed SunCC compilation when using RWSTL instead of STLport; should fix issue 101.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@856 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r-- | src/pugixml.hpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp index b01da4f..efcc471 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -41,11 +41,19 @@ namespace std #ifdef __SUNPRO_CC // Sun C++ compiler has a bug which forces template argument names in forward declarations to be the same as in actual definitions - template <class _T> class allocator; - template <class _charT> struct char_traits; - template <class _charT, class _Traits> class basic_istream; - template <class _charT, class _Traits> class basic_ostream; - template <class _charT, class _Traits, class _Allocator> class basic_string; +# ifndef _STLPORT_VERSION + template <class T> class allocator; + template <class charT> struct char_traits; + template <class charT, class traits > class basic_istream; + template <class charT, class traits > class basic_ostream; + template <class charT, class traits, class Allocator> class basic_string; +# else + template <class _T> class allocator; + template <class _charT> struct char_traits; + template <class _charT, class _Traits> class basic_istream; + template <class _charT, class _Traits> class basic_ostream; + template <class _charT, class _Traits, class _Allocator> class basic_string; +# endif #else // Borland C++ compiler has a bug which forces template argument names in forward declarations to be the same as in actual definitions template <class _Ty> class allocator; |