forked from ak-fortuna/fortuna
chore: rm redundant da_pools, using shared_ptr
This commit is contained in:
parent
580531acf2
commit
65abd3b2f3
|
@ -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>>()};
|
||||
|
|
Loading…
Reference in New Issue