Boost Enum 256 Element Limit
I'm using the enum v4.6 library from the Boost Vault (mentioned here [stackoverflow.com]), but have come across an element limit of 256 (that is, the max number of elements per enum = 256).
I understand this has something to do with the boost preprocessor library and some investigation led me to boost/preprocessor/config/limits.hpp
, but changing these values had no effect开发者_如何学Go since they are purely "informational" (link [groups.google.com])
Is there any way of increasing this limit?
Unfortunately, there is no way to increase the upper limit of elements/arguments you can use with the Boost preprocessor library. Therefore, since the enum library depends on Boost.PP you seem to be out of luck.
精彩评论