This fixes a bug for the case where simulations do not remove fixations from gametes during evolution. In this case, taking a sample (using functions in fwdpp/sugar/sampling.hpp) with removeFixed = false leads to duplication of the fixations. This PR addresses that via a call to std::unique and std::vector::erase following the sorting step.
This fixes a bug for the case where simulations do not remove fixations from gametes during evolution. In this case, taking a sample (using functions in fwdpp/sugar/sampling.hpp) with
removeFixed = false
leads to duplication of the fixations. This PR addresses that via a call tostd::unique
andstd::vector::erase
following the sorting step.