-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eliminate inheritance hierarchies for mutation and gamete #100
Comments
Side effects include:
|
Useful to note that doing this would pre-adapt the library for C++20's "concepts". |
The current inheritance hierarchies for these types were originally developed so that fwdpp could use static_assert to enforce concepts via std::is_base_of.
Given that the library does not (easily) support population w/multiple mutation types at run time (although the current pop types do indeed allow for that), inheritance hierarchies should be removed and the library should rely on compile-time "duck typing" based on a minimal set of requirements to define a mutation.
The same arguments apply to the concept of "gamete".
The text was updated successfully, but these errors were encountered: