From: <pat...@us...> - 2010-07-23 23:11:46
|
Revision: 660 http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=660&view=rev Author: patrickh Date: 2010-07-23 23:11:39 +0000 (Fri, 23 Jul 2010) Log Message: ----------- Use std::tr1::unordered_map when building with Visual C++ 9.0 and newer. Modified Paths: -------------- trunk/cppdom/cppdom.h Modified: trunk/cppdom/cppdom.h =================================================================== --- trunk/cppdom/cppdom.h 2010-05-09 20:45:27 UTC (rev 659) +++ trunk/cppdom/cppdom.h 2010-07-23 23:11:39 UTC (rev 660) @@ -75,8 +75,15 @@ // Use fastest map available #if defined(CPPDOM_USE_HASH_MAP) -# if defined(__GNUC__) && (__GNUC__ >= 4) -# include <tr1/unordered_map> +# if defined(__GNUC__) && __GNUC__ >= 4 || \ + defined(_MSC_VER) && _MSC_VER >= 1500 + +# if defined(__GNUC__) +# include <tr1/unordered_map> +# else +# include <unordered_map> +# endif + # include <map> namespace cppdom This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |