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 09:58:47 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-06-17 09:58:47 +0300
commit42c5424c86bc2f7f79b70821169dc24433e04b28 (patch)
treee059797b37c578142f0f1399d9143772db685b8e /phrase-extract
parent2a798c0b9f19e44c1a63c7c75f657ae15968c8d0 (diff)
1st casualty of c++11. clang 2.6 (latest c++ compiler on osx) doesn't support list of object init
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/ScoreFeatureTest.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/phrase-extract/ScoreFeatureTest.cpp b/phrase-extract/ScoreFeatureTest.cpp
index 51d4e1297..93a452dad 100644
--- a/phrase-extract/ScoreFeatureTest.cpp
+++ b/phrase-extract/ScoreFeatureTest.cpp
@@ -53,16 +53,16 @@ BOOST_AUTO_TEST_CASE(manager_configure_domain_except)
//Check that configure rejects illegal domain arg combinations
ScoreFeatureManager manager;
BOOST_CHECK_THROW(
- manager.configure( {"--DomainRatio","/dev/null","--DomainIndicator","/dev/null"}),
+ manager.configure(boost::assign::list_of("--DomainRatio")("/dev/null")("--DomainIndicator")("/dev/null")),
ScoreFeatureArgumentException);
BOOST_CHECK_THROW(
- manager.configure( {"--SparseDomainSubset","/dev/null","--SparseDomainRatio","/dev/null"}),
+ manager.configure(boost::assign::list_of("--SparseDomainSubset")("/dev/null")("--SparseDomainRatio")("/dev/null")),
ScoreFeatureArgumentException);
BOOST_CHECK_THROW(
- manager.configure( {"--SparseDomainBlah","/dev/null"}),
+ manager.configure(boost::assign::list_of("--SparseDomainBlah")("/dev/null")),
ScoreFeatureArgumentException);
BOOST_CHECK_THROW(
- manager.configure( {"--DomainSubset"}),
+ manager.configure(boost::assign::list_of("--DomainSubset")),
ScoreFeatureArgumentException);
}
@@ -84,16 +84,16 @@ static void checkDomainConfigured(
BOOST_AUTO_TEST_CASE(manager_config_domain)
{
checkDomainConfigured<RatioDomainFeature>
- ( {"--DomainRatio","/dev/null"});
+ (boost::assign::list_of ("--DomainRatio")("/dev/null"));
checkDomainConfigured<IndicatorDomainFeature>
- ( {"--DomainIndicator","/dev/null"});
+ (boost::assign::list_of("--DomainIndicator")("/dev/null"));
checkDomainConfigured<SubsetDomainFeature>
- ( {"--DomainSubset","/dev/null"});
+ (boost::assign::list_of("--DomainSubset")("/dev/null"));
checkDomainConfigured<SparseRatioDomainFeature>
- ( {"--SparseDomainRatio","/dev/null"});
+ (boost::assign::list_of("--SparseDomainRatio")("/dev/null"));
checkDomainConfigured<SparseIndicatorDomainFeature>
- ( {"--SparseDomainIndicator","/dev/null"});
+ (boost::assign::list_of("--SparseDomainIndicator")("/dev/null"));
checkDomainConfigured<SparseSubsetDomainFeature>
- ( {"--SparseDomainSubset","/dev/null"});
+ (boost::assign::list_of("--SparseDomainSubset")("/dev/null"));
}