diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-11-15 14:55:38 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-11-15 14:55:38 +0400 |
commit | 17887a27969e83f4100bd0f4af98986e33999fbe (patch) | |
tree | 0e5c67dbc799c2d339e6a0a25df9aaf8b17b9efc /moses/ChartHypothesis.cpp | |
parent | 3d37a8ffdaa2a0516c82796f33082d66fb67bf92 (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.cpp | 2 |
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()); |