mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 04:43:03 +03:00
Modernize "C" includes in search.
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 search/ subdirectory; more branches to follow. C++11 adds cstdint, but to support compilation with the previous standard, that change is left for later.
This commit is contained in:
parent
88e90957a1
commit
dea76752e9
@ -5,7 +5,7 @@
|
||||
#include "search/header.hh"
|
||||
#include "util/pool.hh"
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
namespace search {
|
||||
|
||||
|
@ -6,9 +6,8 @@
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <queue>
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
|
||||
namespace search {
|
||||
|
||||
|
@ -10,8 +10,7 @@
|
||||
#include <cstddef>
|
||||
#include <queue>
|
||||
#include <vector>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
namespace search {
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include <ostream>
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
namespace search {
|
||||
|
||||
|
@ -6,8 +6,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
namespace search {
|
||||
|
||||
|
@ -8,8 +8,7 @@
|
||||
|
||||
#include <queue>
|
||||
#include <vector>
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace search {
|
||||
|
Loading…
Reference in New Issue
Block a user