What is here? I need to enumerate each class with some index and each constructor of it.
IN A RESULT:
I have to have 2 files: one for TYPES and one for CONSTRUCTORS.
Why?
Because COMMON.H uses TYPES but does not use CONSTRUCTORS (but common.cpp uses constructors),
but CONSTRUCTORS use COMMON.H.
So I can't put TYPES and CONSTRUCTORS in 1 file, because they would require each other.
But I would very like to have it all in 1.
Is there way to do it?
Well, it seems like I found a solution myself.
Instead of initializing constructors array like that, I create 1 instance of "initializer class" in each cpp file, that sets CONSTRUCTOR[INDEX] when created, and then self-destroys. (I don't need to set constructor pointers by myself anymore) This array isn't const, and it all takes a little run-time, but it's not principal.