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 can 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.
c ++ c ++ 11 templates c ++ 14 constexpr
amin
source share