mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 04:43:03 +03:00
delete -#if defined(BOOST... Trying to find target syntax bug when using old boost
This commit is contained in:
parent
bc9ce334d0
commit
7c237bf389
@ -95,10 +95,6 @@ void ChartCell::ProcessSentence(const ChartTranslationOptionList &transOptList
|
||||
for (size_t i = 0; i < transOptList.GetSize(); ++i) {
|
||||
const ChartTranslationOptions &transOpt = transOptList.Get(i);
|
||||
RuleCube *ruleCube = new RuleCube(transOpt, allChartCells, m_manager);
|
||||
if (g_mosesDebug) {
|
||||
cerr << *ruleCube << endl;
|
||||
}
|
||||
|
||||
queue.Add(ruleCube);
|
||||
}
|
||||
|
||||
|
@ -42,10 +42,6 @@ RuleCube::RuleCube(const ChartTranslationOptions &transOpt,
|
||||
ChartManager &manager)
|
||||
: m_transOpt(transOpt)
|
||||
{
|
||||
if (g_mosesDebug) {
|
||||
cerr << transOpt.GetSize() << endl;
|
||||
}
|
||||
|
||||
RuleCubeItem *item = new RuleCubeItem(transOpt, allChartCells);
|
||||
m_covered.insert(item);
|
||||
if (StaticData::Instance().GetCubePruningLazyScoring()) {
|
||||
|
@ -118,14 +118,10 @@ public:
|
||||
{ return m_covered.size(); }
|
||||
|
||||
private:
|
||||
#if defined(BOOST_VERSION) && (BOOST_VERSION >= 104200)
|
||||
typedef boost::unordered_set<RuleCubeItem*,
|
||||
RuleCubeItemHasher,
|
||||
RuleCubeItemEqualityPred
|
||||
> ItemSet;
|
||||
#else
|
||||
typedef std::set<RuleCubeItem*, RuleCubeItemPositionOrderer> ItemSet;
|
||||
#endif
|
||||
|
||||
typedef std::priority_queue<RuleCubeItem*,
|
||||
std::vector<RuleCubeItem*>,
|
||||
|
Loading…
Reference in New Issue
Block a user