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

Use type traits! #300

Open molpopgen opened 3 years ago

molpopgen commented 3 years ago

We have a nice type traits infrastructure that isn't being fully exploited. For example, fwdpp/mutate_recombine.hpp could check is_mutation_model_v and is_rec_model_v. We can probably also push such assertions further up the call chain, too. For example, is fwdpp/ts/generate_offspring.hpp.