delete -#if defined(BOOST... Trying to find target syntax bug when using old boost

This commit is contained in:
Hieu Hoang 2013-12-11 21:45:30 +00:00
parent bc9ce334d0
commit 7c237bf389
3 changed files with 0 additions and 12 deletions

View File

@ -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);
}

View File

@ -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()) {

View File

@ -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*>,