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
path: root/moses/PP
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-03-28 16:09:03 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-03-28 16:09:03 +0300
commita9c8f4489662efcf8825f6bb1a3a8b61c44e7f93 (patch)
treef3d25bb5ef4fbd17343327e02053dd640a5c1fa6 /moses/PP
parent9852a0c2ffcac0f7ad93d249f3b9ecd0c5fcf3f9 (diff)
Modernize "C" includes in moses.
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 moses/ 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 'moses/PP')
-rw-r--r--moses/PP/CountsPhraseProperty.cpp2
-rw-r--r--moses/PP/NonTermContextProperty.cpp2
-rw-r--r--moses/PP/SourceLabelsPhraseProperty.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/moses/PP/CountsPhraseProperty.cpp b/moses/PP/CountsPhraseProperty.cpp
index 00bc08011..a8cefe37f 100644
--- a/moses/PP/CountsPhraseProperty.cpp
+++ b/moses/PP/CountsPhraseProperty.cpp
@@ -1,6 +1,6 @@
#include "moses/PP/CountsPhraseProperty.h"
#include <sstream>
-#include <assert.h>
+#include <cassert>
namespace Moses
{
diff --git a/moses/PP/NonTermContextProperty.cpp b/moses/PP/NonTermContextProperty.cpp
index d1ea6a554..3126e90d9 100644
--- a/moses/PP/NonTermContextProperty.cpp
+++ b/moses/PP/NonTermContextProperty.cpp
@@ -1,6 +1,6 @@
#include "moses/PP/NonTermContextProperty.h"
#include <string>
-#include <assert.h>
+#include <cassert>
#include "moses/Util.h"
#include "moses/FactorCollection.h"
diff --git a/moses/PP/SourceLabelsPhraseProperty.cpp b/moses/PP/SourceLabelsPhraseProperty.cpp
index efe5ae741..18229fd1a 100644
--- a/moses/PP/SourceLabelsPhraseProperty.cpp
+++ b/moses/PP/SourceLabelsPhraseProperty.cpp
@@ -5,7 +5,7 @@
#include <sstream>
#include <string>
#include <queue>
-#include <assert.h>
+#include <cassert>
#include <limits>
namespace Moses