Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-03-28 16:20:58 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-03-28 16:20:58 +0300
commit536c6e375f57b45956de12e9337d6989a368e86a (patch)
tree16fae2a9afb5f7767bb70de77c526cf3f2b0cf8c /mert/evaluator.cpp
parent98e09b14cbc4d06d24f4c976d4c983f3444bbcfe (diff)
Modernize "C" includes in mert.
This is one of those little chores in managing a long-lived C++ project: standard C headers like stdio.h and math.h now have their own place in the C++ standard as resp. cstdio, cmath, and so on. In this branch the #include names are updated for the mert/ subdirectory; more branches to follow. C++11 adds cstdint, but to support compilation with the previous standard, that change is left for later.
Diffstat (limited to 'mert/evaluator.cpp')
-rw-r--r--mert/evaluator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mert/evaluator.cpp b/mert/evaluator.cpp
index 7ab03c7eb..25da9adbc 100644
--- a/mert/evaluator.cpp
+++ b/mert/evaluator.cpp
@@ -4,10 +4,10 @@
#include <vector>
#include <algorithm>
#include <getopt.h>
-#include <math.h>
+#include <cmath>
#if defined __MINGW32__
-#include <time.h>
+#include <ctime>
#endif // defined
#include "Scorer.h"