summaryrefslogtreecommitdiff
path: root/decoder/hg_intersect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/hg_intersect.cc')
-rw-r--r--decoder/hg_intersect.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/decoder/hg_intersect.cc b/decoder/hg_intersect.cc
index ad5b701a..c5f1cc91 100644
--- a/decoder/hg_intersect.cc
+++ b/decoder/hg_intersect.cc
@@ -1,7 +1,12 @@
#include "hg_intersect.h"
#include <vector>
-#include <tr1/unordered_map>
+#ifdef HAVE_CXX11
+# include <unordered_map>
+#else
+# include <tr1/unordered_map>
+namespace std { using std::tr1::unordered_map; }
+#endif
#include "fast_lexical_cast.hpp"
#include <boost/functional/hash.hpp>
@@ -13,7 +18,6 @@
#include "bottom_up_parser.h"
using boost::lexical_cast;
-using namespace std::tr1;
using namespace std;
struct RuleFilter {