From cf779955d9c77a35eb50296c7d00306a8900c828 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Wed, 14 Mar 2012 03:40:06 +0000 Subject: 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 --- src/pugixml.hpp | 18 +++++++++++++----- 1 file 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 allocator; - template struct char_traits; - template class basic_istream; - template class basic_ostream; - template class basic_string; +# ifndef _STLPORT_VERSION + template class allocator; + template struct char_traits; + template class basic_istream; + template class basic_ostream; + template class basic_string; +# else + template class allocator; + template struct char_traits; + template class basic_istream; + template class basic_ostream; + template 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 allocator; -- cgit v1.2.3