Skip to content

Commit

Permalink
Add missing const in weight function
Browse files Browse the repository at this point in the history
  • Loading branch information
MortenSchou committed Mar 23, 2020
1 parent 481c16e commit 0a55572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdaaal/Weight.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ namespace pdaaal {

explicit ordered_weight_function(std::vector<linear_weight_function<W, Args...>> functions) : _functions(functions) {}

constexpr result_type operator()(Args... args) {
constexpr result_type operator()(Args... args) const {
std::vector<W> result;
std::transform(_functions.begin(), _functions.end(), std::back_inserter(result),
[&args...](const linear_weight_function<W, Args...>& f) -> W { return f(args...); });
Expand Down

0 comments on commit 0a55572

Please sign in to comment.