From: Reinier Schoof Date: Wed, 6 Jul 2016 08:16:05 +0000 (+0200) Subject: optional bool is using boost now X-Git-Tag: rec-4.0.2~21^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6dcb2f76eafa4ef121f355ba995640474fa717e;p=thirdparty%2Fpdns.git optional bool is using boost now --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index b91d65f735..b36e58c463 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -779,8 +779,8 @@ vector> setupLua(bool client, const std::string& confi return std::shared_ptr(new SuffixMatchNodeRule(smn, quiet ? *quiet : false)); }); - g_lua.writeFunction("NetmaskGroupRule", [](const NetmaskGroup& nmg, bool src = true) { - return std::shared_ptr(new NetmaskGroupRule(nmg, src)); + g_lua.writeFunction("NetmaskGroupRule", [](const NetmaskGroup& nmg, boost::optional src) { + return std::shared_ptr(new NetmaskGroupRule(nmg, src ? *src : true)); }); g_lua.writeFunction("benchRule", [](std::shared_ptr rule, boost::optional times_, boost::optional suffix_) {