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:
authorMichal Hrusecky <Michal@Hrusecky.net>2012-01-31 16:44:56 +0400
committerMichal Hrusecky <Michal@Hrusecky.net>2012-01-31 20:00:01 +0400
commitc4397c14911d5285a882fea3ae8a87d668443c72 (patch)
tree5eef6b7fd9d943a4c91893b99464e56d49127975 /moses-cmd
parent3e637b2732166cce77cac5f18e489441d45b4568 (diff)
Use make_pair without type
Replacing typed make_pair with non-typed version to fix compilation issues.
Diffstat (limited to 'moses-cmd')
-rw-r--r--moses-cmd/src/LatticeMBR.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses-cmd/src/LatticeMBR.cpp b/moses-cmd/src/LatticeMBR.cpp
index cf172d737..b579fb592 100644
--- a/moses-cmd/src/LatticeMBR.cpp
+++ b/moses-cmd/src/LatticeMBR.cpp
@@ -148,13 +148,13 @@ void pruneLatticeFB(Lattice & connectedHyp, map < const Hypothesis*, set <const
//sort hyps based on estimated scores - do so by copying to multimap
multimap<float, const Hypothesis*> sortHypsByVal;
for (size_t i =0; i < estimatedScores.size(); ++i) {
- sortHypsByVal.insert(make_pair<float, const Hypothesis*>(estimatedScores[i], connectedHyp[i]));
+ sortHypsByVal.insert(make_pair(estimatedScores[i], connectedHyp[i]));
}
multimap<float, const Hypothesis*>::const_iterator it = --sortHypsByVal.end();
float bestScore = it->first;
//store best score as score of hyp 0
- sortHypsByVal.insert(make_pair<float, const Hypothesis*>(bestScore, emptyHyp));
+ sortHypsByVal.insert(make_pair(bestScore, emptyHyp));
IFVERBOSE(3) {