What is the difference between these member variables:
struct my_class {
static const int i = 0;
static constexpr int j = 0;
};
If my understanding is correct, I'm able to use both i
and j
as compile time constants. That is, both std::array<int, my_class::i>
and std::array<int,my_class::j>
should work.