Maximum number of C ++ compiler classes

In metaprogramming, the number of classes is growing quite rapidly. The maximum number of classes of modern compilers allows, for example, g ++, something bothers?

thank

+3
source share
3 answers

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.

+2
source

64- , - . , , , - .

, , , 2 , 32- . , ++ , . , , : -)

+1

, - , , - , .

Of course, someone with a source in front of them can give a more specific answer :)

0
source

Source: https://habr.com/ru/post/1748780/


All Articles