summaryrefslogtreecommitdiff
path: root/mteval/ns_ter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mteval/ns_ter.cc')
-rw-r--r--mteval/ns_ter.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/mteval/ns_ter.cc b/mteval/ns_ter.cc
index 0e1008db..f0d84098 100644
--- a/mteval/ns_ter.cc
+++ b/mteval/ns_ter.cc
@@ -4,7 +4,12 @@
#include <cassert>
#include <iostream>
#include <limits>
-#include <tr1/unordered_map>
+#ifdef HAVE_CXX11
+# include <unordered_map>
+#else
+# include <tr1/unordered_map>
+namespace std { using std::tr1::unordered_map; }
+#endif
#include <set>
#include <boost/functional/hash.hpp>
#include "tdict.h"
@@ -20,7 +25,6 @@ static const unsigned kREF_WORDCOUNT = 4;
static const unsigned kDUMMY_LAST_ENTRY = 5;
using namespace std;
-using namespace std::tr1;
bool TERMetric::IsErrorMetric() const {
return true;