fix: refactor foundry to be more dynamic than static

- Remove size template in favor of dynamic container: allow using the
generic interface.
- Using `operator=` was inducing slicing.
This commit is contained in:
Johann Dreo 2020-04-12 16:26:37 +02:00
commit 11ff72bdd9
5 changed files with 56 additions and 55 deletions

View file

@ -84,7 +84,7 @@ int main(int /*argc*/, char** /*argv*/)
foundry.at(foundry.index_of.replacements) = i_rep;
// Or, if you know the order.
foundry = {i_cont, i_cross, i_mut, i_sel, i_rep};
foundry.select({i_cont, i_cross, i_mut, i_sel, i_rep});
// Actually perform a search
foundry(pop);