mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 12:52:29 +03:00
b3c0a29044
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 lm/ subdirectory. C++11 adds cstdint, but to support compilation with the previous standard, that change is left for later.
15 lines
267 B
C++
15 lines
267 B
C++
// Separate header because this is used often.
|
|
#ifndef LM_WORD_INDEX_H
|
|
#define LM_WORD_INDEX_H
|
|
|
|
#include <climits>
|
|
|
|
namespace lm {
|
|
typedef unsigned int WordIndex;
|
|
const WordIndex kMaxWordIndex = UINT_MAX;
|
|
} // namespace lm
|
|
|
|
typedef lm::WordIndex LMWordIndex;
|
|
|
|
#endif
|