diff --git a/examples/idmapBench/main.cpp b/examples/idmapBench/main.cpp index 8900a706f..7a22e1dc0 100644 --- a/examples/idmapBench/main.cpp +++ b/examples/idmapBench/main.cpp @@ -12,7 +12,11 @@ #include #include #include +#ifdef CPP_11 #include +#else +#include +#endif using namespace std; using namespace Upp; @@ -115,7 +119,11 @@ void BenchMap(const char *file) #endif } +#ifdef CPP_11 typedef std::unordered_map< string, vector > HashMap; +#else +typedef std::tr1::unordered_map< string, vector > HashMap; +#endif inline bool h_less(const HashMap::value_type *a, const HashMap::value_type *b) {