mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
Fix compiler errors for more strict compilers
This commit is contained in:
parent
96bc9d05dc
commit
b9d228b281
@ -33,9 +33,9 @@ template <class Model> void Fill<Model>::Add(const TargetPhraseCollection &targe
|
||||
}
|
||||
|
||||
std::vector<lm::WordIndex> words;
|
||||
for (TargetPhraseCollection::const_iterator i(targets.begin()); i != targets.end(); ++i) {
|
||||
for (TargetPhraseCollection::const_iterator p(targets.begin()); p != targets.end(); ++p) {
|
||||
words.clear();
|
||||
const TargetPhrase &phrase = **i;
|
||||
const TargetPhrase &phrase = **p;
|
||||
const AlignmentInfo::NonTermIndexMap &align = phrase.GetAlignmentInfo().GetNonTermIndexMap();
|
||||
search::PartialEdge edge(edges_.AllocateEdge(nts.size()));
|
||||
|
||||
|
@ -16,7 +16,7 @@ class Pool {
|
||||
|
||||
~Pool();
|
||||
|
||||
void *Allocate(size_t size) {
|
||||
void *Allocate(std::size_t size) {
|
||||
void *ret = current_;
|
||||
current_ += size;
|
||||
if (current_ < current_end_) {
|
||||
@ -29,7 +29,7 @@ class Pool {
|
||||
void FreeAll();
|
||||
|
||||
private:
|
||||
void *More(size_t size);
|
||||
void *More(std::size_t size);
|
||||
|
||||
std::vector<void *> free_list_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user