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

Allow for "empty" recombination callbacks #74

Closed molpopgen closed 6 years ago

molpopgen commented 6 years ago

The notion that a recombination callback must always have this sort of signature is limiting:

std::function<std::vector<double>(const gamete &, const gamete &, const mutations &)>

In practice, there hasn't been much demand for such policies, and what we do in practice is equivalent to:

std::function<std::vector<double>(void)>;

The latter should be supported directly via dispatch.

molpopgen commented 6 years ago

Addressed in #75, which will be part of next release.