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 <hieuhoang@gmail.com>2015-10-19 19:22:18 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-19 19:22:18 +0300
commit9891e5b50bbb22b11f4895c8eb7a8bf06993353e (patch)
tree6d206cd3814334a88efd7fbeffa2839c2e412814 /moses/Bitmaps.cpp
parent7d98df2b0c39007c9167c505b73df5ef31ffd69c (diff)
Revert "reuse bitmap key for BitmapContainer"
This reverts commit 7d98df2b0c39007c9167c505b73df5ef31ffd69c.
Diffstat (limited to 'moses/Bitmaps.cpp')
-rw-r--r--moses/Bitmaps.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/moses/Bitmaps.cpp b/moses/Bitmaps.cpp
index afee1fa0a..e130898f4 100644
--- a/moses/Bitmaps.cpp
+++ b/moses/Bitmaps.cpp
@@ -2,7 +2,6 @@
#include "Bitmaps.h"
#include "Util.h"
-using namespace std;
namespace Moses
{
@@ -27,7 +26,7 @@ const WordsBitmap &Bitmaps::GetNextBitmap(const WordsBitmap &bm, const WordsRang
Coll::const_iterator iter = m_coll.find(newBM);
if (iter == m_coll.end()) {
- m_coll[newBM] = NextBitmaps();
+ m_coll[newBM];
return *newBM;
} else {
return *iter->first;
@@ -49,7 +48,6 @@ const WordsBitmap &Bitmaps::GetBitmap(const WordsBitmap &bm, const WordsRange &r
}
else {
// link exist
- //std::cerr << "link exists" << endl;
newBM = iterNext->second;
}
return *newBM;