-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAX_NUMBER_OF_MEMBERS #376
Comments
It looks like the ERB is just generating preprocessor macros which have a limit to the amount of arguments that a macro can receive. The docs for See the examples below "Minimal Complete Definition" here: Struct |
Thanks for the link to Struct. That'll do the job I need. |
I was away over the holidays. Reopening since I think we need a better solution. The ERB could generate the macros it needs for up to the right number of elements. In other words, we could lift the restriction that |
This is done by generating the supporting preprocessor macros with ERB up to the required arity, like we do for the struct macros themselves. Fixes #376
This should now be addressed. You can now generate |
Hi,
Boost Hana's wonderfulness is unavailable for some autogen structs from table work I'm working with.
I have more than 62 columns - to be members - of the table - to be struct.
Unfortunately, the ERB in hana/detail doesn't like the idea of more than 62 members in a struct.
MAX_NUMBER_OF_MEMBERS = (ENV["MAX_NUMBER_OF_MEMBERS"] || 40).to_i raise "MAX_NUMBER_OF_MEMBERS must be <= 62" if MAX_NUMBER_OF_MEMBERS > 62
Pretty sensible for handcrafting but a bit limiting for my autogen work. Any thoughts on how best to raise the bar to 79 or 99 members?
Kind regards,
--Matt.
The text was updated successfully, but these errors were encountered: