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:
authorhieu <hieu@UNKNOWN.Home>2017-09-26 14:54:09 +0300
committerhieu <hieu@UNKNOWN.Home>2017-09-26 14:54:09 +0300
commiteced95d694cb0297ebaba3a66cd4ee3f4d97f3c6 (patch)
treeb7041608bb6abbbb0d0ad50e92071a6616e189c0
parentc276ffbe01befa233fdef3910b6fa40e7d486977 (diff)
Revert "use std::unordered_set instead of boost::unordered_set. Segfault on boost 1.65.1"
This reverts commit d3c2c0bda54cd8992742953d68dc06d86284d196.
-rw-r--r--moses2/HypothesisColl.cpp2
-rw-r--r--moses2/HypothesisColl.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/moses2/HypothesisColl.cpp b/moses2/HypothesisColl.cpp
index 39acedced..18046bd4c 100644
--- a/moses2/HypothesisColl.cpp
+++ b/moses2/HypothesisColl.cpp
@@ -254,8 +254,6 @@ void HypothesisColl::Delete(const HypothesisBase *hypo)
//cerr << "hypo=" << hypo << " " << m_coll.size() << endl;
size_t erased = m_coll.erase(hypo);
- //cerr << "erased=" << erased << " " << m_coll.size() << endl;
-
UTIL_THROW_IF2(erased != 1, "couldn't erase hypo " << hypo);
}
diff --git a/moses2/HypothesisColl.h b/moses2/HypothesisColl.h
index f00a2efb0..63a8551ba 100644
--- a/moses2/HypothesisColl.h
+++ b/moses2/HypothesisColl.h
@@ -5,7 +5,6 @@
* Author: hieu
*/
#pragma once
-#include <unordered_set>
#include <boost/unordered_set.hpp>
#include "HypothesisBase.h"
#include "MemPoolAllocator.h"
@@ -54,7 +53,7 @@ public:
std::string Debug(const System &system) const;
protected:
- typedef std::unordered_set<const HypothesisBase*,
+ typedef boost::unordered_set<const HypothesisBase*,
UnorderedComparer<HypothesisBase>, UnorderedComparer<HypothesisBase>,
MemPoolAllocator<const HypothesisBase*> > _HCType;