From 85e86fced64b5625545994aa87c02fc84ecca493 Mon Sep 17 00:00:00 2001 From: Tifa <62847935+Tiphereth-A@users.noreply.github.com> Date: Mon, 18 Mar 2024 03:30:58 +0800 Subject: [PATCH] fix: requires --- src/code/opt/heuristic_sa.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/code/opt/heuristic_sa.hpp b/src/code/opt/heuristic_sa.hpp index f1ca87c1a..3c9fb7d71 100644 --- a/src/code/opt/heuristic_sa.hpp +++ b/src/code/opt/heuristic_sa.hpp @@ -6,9 +6,9 @@ namespace tifa_libs::opt { template -requires requires(Ff f, Fg g, T const& t) { - { f(t) } -> std::same_as; - { g(t) } -> std::same_as; +requires requires(Ff fit, Fg gen, T const& sample, Tt t) { + { fit(sample) } -> std::same_as; + { gen(sample, t) } -> std::same_as; } class heuristic_sa { Fg gen;