diff --git a/include/criterion/types.h b/include/criterion/types.h index d3dada3..8265b58 100644 --- a/include/criterion/types.h +++ b/include/criterion/types.h @@ -63,11 +63,12 @@ struct criterion_test_params { {} template - constexpr criterion_test_params(std::vector>& vec) + constexpr criterion_test_params(std::vector>& vec, + void (*cleanup)(criterion_test_params *) = nullptr) : size(sizeof (T)) , params(&vec[0]) , length(vec.size()) - , cleanup(nullptr) + , cleanup(cleanup) {} # endif };