Files
horizon-packages/srcpkgs/dnsdist/patches/boost-1.91.patch
T

30 lines
1.5 KiB
Diff
Raw Normal View History

2026-03-30 22:04:12 +07:00
--- a/dnsdist-lua.cc
+++ b/dnsdist-lua.cc
@@ -3083,7 +3083,7 @@ static void setupLuaConfig(LuaContext& l
customName = std::optional(*optCustomName);
}
if (!customName) {
- boost::optional<declare_metric_opts_t> vars = {boost::get<declare_metric_opts_t>(opts.get())};
+ boost::optional<declare_metric_opts_t> vars = boost::get<declare_metric_opts_t>(opts.get());
getOptionalValue<std::string>(vars, "customName", customName);
getOptionalValue<bool>(vars, "withLabels", withLabels);
checkAllParametersConsumed("declareMetric", vars);
@@ -3106,7 +3106,7 @@ static void setupLuaConfig(LuaContext& l
step = *custom_step;
}
else {
- boost::optional<update_metric_opts_t> vars = {boost::get<update_metric_opts_t>(incOpts)};
+ boost::optional<update_metric_opts_t> vars = boost::get<update_metric_opts_t>(incOpts);
getOptionalValue<uint64_t>(vars, "step", step);
getOptionalValue<LuaAssociativeTable<std::string>>(vars, "labels", labels);
checkAllParametersConsumed("incMetric", vars);
@@ -3128,7 +3128,7 @@ static void setupLuaConfig(LuaContext& l
step = *custom_step;
}
else {
- boost::optional<update_metric_opts_t> vars = {boost::get<update_metric_opts_t>(decOpts)};
+ boost::optional<update_metric_opts_t> vars = boost::get<update_metric_opts_t>(decOpts);
getOptionalValue<uint64_t>(vars, "step", step);
getOptionalValue<LuaAssociativeTable<std::string>>(vars, "labels", labels);
checkAllParametersConsumed("decMetric", vars);