Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ compiler maximum number of classes

In meta-programming number of classes grows quite fast. Is maximum number of classes modern compiler allows, for example g++, something to be concerned about?

Thank you

like image 650
Anycorn Avatar asked Dec 27 '25 15:12

Anycorn


1 Answers

I'd guess this question is best answered by the standard published by the C++ committee. But looking at this place, I can't see any upper limit on the number of classes although there is minimum quantity limit on many items (saying at least the given number of items of each type should be supported by the compiler but that is not a binding limit). If your compiler can support these minimum limits, you should be OK.

But what factors would have the say on the upper limits on the number of classes kindles my academic curiosity. I'd be glad to know if a compiler guru can answer that.

like image 116
vpit3833 Avatar answered Dec 30 '25 04:12

vpit3833



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!