Boost Enum 256 Elemental Limit

I use the enum v4.6 library from Boost Vault (mentioned here [stackoverflow.com]), but have encountered an element limit of 256 (that is, the maximum number of elements per enum = 256).

I understand that this has something to do with the boost/preprocessor/config/limits.hpp library, and some research led me to boost/preprocessor/config/limits.hpp , but changing these values ​​had no effect as they are purely informational ( link [groups. google.com])

Is there any way to increase this limit?

+4
source share
1 answer

Unfortunately, there is no way to increase the upper limit of elements / arguments that you can use with the Boost preprocessor library. Therefore, since the enum library is dependent on Boost.PP, you feel like you're out of luck.

+4
source

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


All Articles