chore: rm redundant da_pools, using shared_ptr

This commit is contained in:
surtur 2022-01-22 19:57:51 +01:00
parent 580531acf2
commit 65abd3b2f3
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -102,13 +102,7 @@ public:
private:
generator::Generator Gen;
// da_pools is to be used solely for creating a shared_ptr of the
// object: _p_pools. any further access to the structure should be
// facilitated by the subject _p_pools shared_ptr. to convey this,
// da_pools is declared const
const std::array<accumulator::Pool, Fortuna::NUM_OF_POOLS> da_pools;
// _p_pools points to the da_pools array of 32 Pool objects
// _p_pools points to the array of 32 Pool objects
std::shared_ptr<std::array<accumulator::Pool, Fortuna::NUM_OF_POOLS>>
_p_pools{std::make_shared<
std::array<accumulator::Pool, Fortuna::NUM_OF_POOLS>>()};