molpopgen / fwdpp

fwdpp is a C++ template library for implementing efficient forward-time population genetic simulations
http://fwdpp.readthedocs.io
GNU General Public License v3.0
27 stars 11 forks source link

Support diploid-dependent mutation models #80

Closed molpopgen closed 6 years ago

molpopgen commented 6 years ago

We should allow function signatures expecting a diploid. This could build on #73, where we could imagine overloads accepting functions taking diploids as arguments.

The challenge here may be in the dispatch. As in #74, we could run into issues with dispatch of functions composed via std::bind.

molpopgen commented 6 years ago

While we are at it, gamete-dependent mutation functions need to be changed so that the functions expect a const reference to gamete. The current requirement is a non-const reference, which is not what we intend.