From 96fd9388a2b4e850573690b92bc6f26713f3ee63 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 15 Dec 2015 12:03:56 +0000 Subject: [PATCH] .examples git-svn-id: svn://ultimatepp.org/upp/trunk@9293 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- examples/idmapBench/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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) {