Skip to content

Commit

Permalink
fix: requires
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiphereth-A committed Mar 17, 2024
1 parent 050f1bb commit 85e86fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/code/opt/heuristic_sa.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
namespace tifa_libs::opt {

template <class T, class Fg, class Ff, class Ft = f64, class Tt = f64>
requires requires(Ff f, Fg g, T const& t) {
{ f(t) } -> std::same_as<Ft>;
{ g(t) } -> std::same_as<T>;
requires requires(Ff fit, Fg gen, T const& sample, Tt t) {
{ fit(sample) } -> std::same_as<Ft>;
{ gen(sample, t) } -> std::same_as<T>;
}
class heuristic_sa {
Fg gen;
Expand Down

0 comments on commit 85e86fc

Please sign in to comment.