From 0a55572529dbc9e64a232e2ba22ede1b10fbd8eb Mon Sep 17 00:00:00 2001 From: Morten Konggaard Schou Date: Mon, 23 Mar 2020 17:44:06 +0100 Subject: [PATCH] Add missing const in weight function --- src/pdaaal/Weight.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdaaal/Weight.h b/src/pdaaal/Weight.h index 9d03426..36e0a0c 100644 --- a/src/pdaaal/Weight.h +++ b/src/pdaaal/Weight.h @@ -189,7 +189,7 @@ namespace pdaaal { explicit ordered_weight_function(std::vector> functions) : _functions(functions) {} - constexpr result_type operator()(Args... args) { + constexpr result_type operator()(Args... args) const { std::vector result; std::transform(_functions.begin(), _functions.end(), std::back_inserter(result), [&args...](const linear_weight_function& f) -> W { return f(args...); });