mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
use c++11 unordered set code
This commit is contained in:
parent
127b860c6a
commit
7031992caa
@ -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 << " ";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user