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

Refactor rec policies #75

Closed molpopgen closed 6 years ago

molpopgen commented 6 years ago

This PR is a WIP addressing #74.

The challenge here is that the tendency to use std::bind to generate callable objects leads to painful issues when attempting compile-time dispatch. These issues are solved by lambdas for complex functions, or via encapsulation for simpler ones.