better-enums
better-enums copied to clipboard
Extend default size limit beyond 64
I exceeded the implicit enum size limit so had to extend the BETTER_ENUMS__PP_COUNT-etc macros to support more than 64 elements ... perhaps 128 or something might be a good new limit for example.
ah, my bad, I see you mention this limit and explain why and give instructions for how to increase it if needed.
I'll still treat it as a valid issue, though. It's probably better to have a larger default limit, though I can't unconditionally make it 128 (IIRC) due to the macro argument limit on VC++. I'll try 124, or some number like that. It will have to wait a bit until I do some testing for any unexpected negative effects, such as on performance. Maybe some compiler's preprocessor is really bad at dealing with large numbers of arguments... :)
(Note: I apologize for not replying earlier about the instructions – I assumed you had been referring to having to regenerate the macro using the Python script, in which case I was going to just extend the default limit and reply then.)
I also exceeded this size, but I had no idea what was wrong. I did not see the size limit mentioned (still can't find it), however, it would be nice to get a reasonable error message (maybe in the form of a static assert) that explains the limit right away.