Skip to content

Commit

Permalink
Fix assert in HeuristicParameters constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
M393 authored and jcoupey committed Nov 9, 2021
1 parent 2502952 commit 0e2b9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/typedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct HeuristicParameters {
// Only makes sense for user-defined initial routes.
constexpr HeuristicParameters(HEURISTIC heuristic)
: heuristic(heuristic), init(INIT::NONE), regret_coeff(0) {
assert(heuristic = HEURISTIC::INIT_ROUTES);
assert(heuristic == HEURISTIC::INIT_ROUTES);
}
};

Expand Down

0 comments on commit 0e2b9c3

Please sign in to comment.