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-06-17 10:42:46 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-06-17 10:42:46 +0300
commit7031992caa2bd850d2442ae99b697f01194046db (patch)
tree6ce1d47ac6a2f188b7ea7618dfaf748fecc5fa6b /phrase-extract
parent127b860c6a7b54daa9b8808006835410510241aa (diff)
use c++11 unordered set code
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/ScoreFeatureTest.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/phrase-extract/ScoreFeatureTest.cpp b/phrase-extract/ScoreFeatureTest.cpp
index 51d4e1297..9497414be 100644
--- a/phrase-extract/ScoreFeatureTest.cpp
+++ b/phrase-extract/ScoreFeatureTest.cpp
@@ -25,7 +25,7 @@
#include <boost/test/test_tools.hpp>
#include <boost/test/unit_test.hpp>
-#include <boost/assign/list_of.hpp>
+#include <unordered_set>
using namespace MosesTraining;
using namespace std;
@@ -95,5 +95,15 @@ BOOST_AUTO_TEST_CASE(manager_config_domain)
( {"--SparseDomainIndicator","/dev/null"});
checkDomainConfigured<SparseSubsetDomainFeature>
( {"--SparseDomainSubset","/dev/null"});
+
+ unordered_set<int> s;
+ s.insert(4);
+ s.insert(7);
+ s.insert(4);
+ s.insert(1);
+
+ for (auto i: s) {
+ cerr << i << " ";
+ }
}