diff --git a/fwdpp/ts/types/tree_sequence.hpp b/fwdpp/ts/types/tree_sequence.hpp index 6ff1d6c81..1fac469e8 100644 --- a/fwdpp/ts/types/tree_sequence.hpp +++ b/fwdpp/ts/types/tree_sequence.hpp @@ -70,11 +70,17 @@ namespace fwdpp return samples; } + std::size_t + init_num_trees() + { + return 0; + } + public: tree_sequence( std::shared_ptr> tables) - : tables_{init_tables(std::move(tables))}, samples_{ - init_samples(*tables)} + : tables_{init_tables(std::move(tables))}, + samples_{init_samples(*tables)}, num_trees_{init_num_trees()} { } @@ -83,7 +89,8 @@ namespace fwdpp std::vector samples) : tables_{init_tables(std::move(tables))}, samples_{init_samples( *tables, - std::move(samples))} + std::move(samples))}, + num_trees_{init_num_trees()} { } };