fix!(eoBit): defaults to char for scalar type
Since STL's vector of bool is not a vector of bool, `swap`ing bool elements in an eoBit can lead to errors. Using `char` is a saner default. Potential BREAKING CHANGE.
This commit is contained in:
parent
e643468de8
commit
55b2f57d19
5 changed files with 9 additions and 9 deletions
|
|
@ -56,7 +56,7 @@ int main() {
|
|||
nkLandscapesEval<Solution> eval(N, K);
|
||||
|
||||
// init
|
||||
eoUniformGenerator<bool> uGen;
|
||||
eoUniformGenerator<char> uGen;
|
||||
eoInitFixedLength<Solution> init(N, uGen);
|
||||
|
||||
// verif constructor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue