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 Hoang <hieu@hoang.co.uk>2013-11-15 14:55:38 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-11-15 14:55:38 +0400
commit17887a27969e83f4100bd0f4af98986e33999fbe (patch)
tree0e5c67dbc799c2d339e6a0a25df9aaf8b17b9efc /moses/ChartHypothesis.cpp
parent3d37a8ffdaa2a0516c82796f33082d66fb67bf92 (diff)
replace nth_element() with macro that execute sort() instead for gcc 4.8.1 & 4.8.2
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r--moses/ChartHypothesis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/ChartHypothesis.cpp b/moses/ChartHypothesis.cpp
index 1cff9046d..034905158 100644
--- a/moses/ChartHypothesis.cpp
+++ b/moses/ChartHypothesis.cpp
@@ -245,7 +245,7 @@ void ChartHypothesis::CleanupArcList()
if (!distinctNBest && m_arcList->size() > nBestSize) {
// prune arc list only if there too many arcs
- nth_element(m_arcList->begin()
+ NTH_ELEMENT4(m_arcList->begin()
, m_arcList->begin() + nBestSize - 1
, m_arcList->end()
, CompareChartChartHypothesisTotalScore());