|
@@ -17,7 +17,13 @@
|
|
|
|
|
|
// in future we should replace this with
|
|
|
// unordered_map, but it is still experimental but standard c++
|
|
|
+#ifdef WIN32
|
|
|
+#ifdef NICE_USELIB_BOOST
|
|
|
+#include <boost/unordered_map.hpp>
|
|
|
+#endif
|
|
|
+#else
|
|
|
#include <ext/hash_map>
|
|
|
+#endif
|
|
|
|
|
|
#include "core/basics/Config.h"
|
|
|
#include "core/basics/Persistent.h"
|
|
@@ -35,9 +41,15 @@ class ClassNames : public NICE::Persistent
|
|
|
std::map<std::string, std::string> tbl_text_code;
|
|
|
std::map<int, std::string> tbl_classno_code;
|
|
|
std::map<std::string, int> tbl_code_classno;
|
|
|
- __gnu_cxx::hash_map<long, int> tbl_color_classno;
|
|
|
+#if defined WIN32 && defined NICE_USELIB_BOOST
|
|
|
+ boost::unordered_map<long, int> tbl_color_classno;
|
|
|
+#else
|
|
|
+ __gnu_cxx::hash_map<long, int> tbl_color_classno;
|
|
|
+#endif
|
|
|
+
|
|
|
std::map<int, long> tbl_classno_color;
|
|
|
|
|
|
+
|
|
|
int maxClassNo;
|
|
|
|
|
|
public:
|