I think this question is best answered by the standard published by the C ++ committee. But looking at this place , I do not see the upper limit on the number of classes, although on many subjects there is a minimal limit on the number (to say the least, the specified number of elements of each type must be supported by the compiler, but this is not a mandatory limit). If your compiler can support these minimum limits, you should be fine.
But what factors could affect the upper bounds of the number of classes that arouse my academic curiosity. I would be happy to know if this can be answered by the compiler guru.
source
share