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

Remove use of assert #146

Closed molpopgen closed 5 years ago

molpopgen commented 6 years ago

When compiled in debugging mode, many calls are made to assert, which poses a problem when the library is used as a back-end for Python or R. These calls should be replaced with exceptions wrapped in ifndef NDEBUG blocks.