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:
parent
78be884270
commit
11ff72bdd9
5 changed files with 56 additions and 55 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue