X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fconditionalloader.cpp;h=731c5594c312a1d9cd18cd985c325f7806f1bc96;hb=c5169863e1ec3060d3bdc3b8c0317710ce8c3ee3;hp=43e613b737d263b1e84469ccc7a0af8ed072d105;hpb=c3968651eb8a2ba66a95398f0571dd5afd37225c;p=builder.git diff --git a/source/conditionalloader.cpp b/source/conditionalloader.cpp index 43e613b..731c559 100644 --- a/source/conditionalloader.cpp +++ b/source/conditionalloader.cpp @@ -16,7 +16,8 @@ ArchitectureConditional::ArchitectureConditional(const Builder &b, const string void ArchitectureConditional::if_arch(const string &cond) { - BooleanEvaluator eval(sigc::hide<1>(sigc::mem_fun(&builder.get_current_arch(), &Architecture::match_name)), false); + const Architecture &arch = builder.get_current_arch(); + BooleanEvaluator eval([&arch](const string &value, const string *){ return arch.match_name(value); }, false); bool match = eval.evaluate(cond); builder.get_logger().log("configure", format("%s: arch %s %smatched", log_prefix, cond, (match ? "" : "not "))); if(match) @@ -33,7 +34,7 @@ FeatureConditional::FeatureConditional(const SourcePackage &p, const string &l): void FeatureConditional::if_feature(const string &cond) { - BooleanEvaluator eval(sigc::mem_fun(&package, &SourcePackage::match_feature)); + BooleanEvaluator eval([this](const string &feat, const string *value){ return package.match_feature(feat, value); }); bool match = eval.evaluate(cond); package.get_builder().get_logger().log("configure", format("%s: feature %s %smatched", log_prefix, cond, (match ? "" : "not "))); if(match)