mirror of
https://github.com/itzmeanjan/ml-kem.git
synced 2026-01-09 15:47:55 -05:00
Declare lambda functions as constexpr
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
||||
const auto compute_min = [](const std::vector<double>& v) -> double { return *std::min_element(v.begin(), v.end()); };
|
||||
const auto compute_max = [](const std::vector<double>& v) -> double { return *std::max_element(v.begin(), v.end()); };
|
||||
constexpr auto compute_min = [](const std::vector<double>& v) -> double { return *std::min_element(v.begin(), v.end()); };
|
||||
constexpr auto compute_max = [](const std::vector<double>& v) -> double { return *std::max_element(v.begin(), v.end()); };
|
||||
|
||||
Reference in New Issue
Block a user