Tell me if you can do this:
struct CMyData { const int size = 100; int array[size]; }; I just don’t want to use it in any code for etc. [Magic numbers] , and so it will be clear - it is immediately clear what it is.
Of course, the compiler swears at the current implementation (otherwise I wouldn't ask :)) Is it possible to make the correct version?
static const int size = 100;- VTT