From 574252cdae4aede9e30f19a43cab3494bd01bcc7 Mon Sep 17 00:00:00 2001 From: Wilker Aziz Date: Mon, 22 Sep 2014 11:07:12 +0100 Subject: added missing c++11 headers (could not compile with gcc-4.8) --- decoder/ff_csplit.cc | 8 ++------ decoder/ff_source_syntax.cc | 7 +------ decoder/ff_source_syntax2.cc | 1 + decoder/scfg_translator.cc | 1 + decoder/tree2string_translator.cc | 1 + 5 files changed, 6 insertions(+), 12 deletions(-) diff --git a/decoder/ff_csplit.cc b/decoder/ff_csplit.cc index a0e538d3..550ff69a 100644 --- a/decoder/ff_csplit.cc +++ b/decoder/ff_csplit.cc @@ -2,6 +2,8 @@ #include #include +#include +#include #include "klm/lm/model.hh" @@ -14,12 +16,6 @@ #include "stringlib.h" #include "tdict.h" -#ifndef HAVE_OLD_CPP -# include -#else -# include -namespace std { using std::tr1::unordered_set; } -#endif using namespace std; struct BasicCSplitFeaturesImpl { diff --git a/decoder/ff_source_syntax.cc b/decoder/ff_source_syntax.cc index 6b183863..f6f673d2 100644 --- a/decoder/ff_source_syntax.cc +++ b/decoder/ff_source_syntax.cc @@ -2,12 +2,7 @@ #include #include -#ifndef HAVE_OLD_CPP -# include -#else -# include -namespace std { using std::tr1::unordered_set; } -#endif +#include #include "sentence_metadata.h" #include "array2d.h" diff --git a/decoder/ff_source_syntax2.cc b/decoder/ff_source_syntax2.cc index a97e31d8..48991920 100644 --- a/decoder/ff_source_syntax2.cc +++ b/decoder/ff_source_syntax2.cc @@ -3,6 +3,7 @@ #include #include #include +#include #include "sentence_metadata.h" #include "array2d.h" diff --git a/decoder/scfg_translator.cc b/decoder/scfg_translator.cc index c3cfcaad..83b65c28 100644 --- a/decoder/scfg_translator.cc +++ b/decoder/scfg_translator.cc @@ -1,5 +1,6 @@ #include #include +#include #include #include #include "fast_lexical_cast.hpp" diff --git a/decoder/tree2string_translator.cc b/decoder/tree2string_translator.cc index adc8dc89..bd3b01d0 100644 --- a/decoder/tree2string_translator.cc +++ b/decoder/tree2string_translator.cc @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3