How can I initialise a static member variable "dynamically"?
For instance, I declare this variable in the header file of a class:
class MyPermutation {
static std::array<std::vector<uint8_t>,2> permutation_list;
};
And I want it to have the following values:
permutation_list[0] = std::vector<uint8_t>{0};
permutation_list[1] = std::vector<uint8_t>{};
for ( uint8_t i = 0; i < 8; i++ )
permutation_list[1].push_back( 1<<i );
Where should I put the above code?