Skip to content
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

allow for cereal to be applied to template classes with multiple arguments #141

Closed
wants to merge 1 commit into from

Conversation

avimosher
Copy link

This uses VA_ARGS instead of T in the macro argument list to allow for template classes with multiple arguments. I think it should be strictly more functionality and not break anything that worked before (but I might be wrong). Also, I didn't touch CEREAL_REGISTER_TYPE_WITH_NAME because I would have had to switch the argument order in the macro to use VA_ARGS, which would definitely break things.

@AzothAmmo AzothAmmo added this to the v1.2.0 milestone Dec 15, 2014
AzothAmmo added a commit that referenced this pull request Mar 1, 2016
See #141

Should work across all compilers we currently support, for any other
times when templated types are needed in a macro, just unroll the macro
manually and replace as necessary
@AzothAmmo
Copy link
Contributor

Original PR was from a while ago so it was easier to do this one by hand.

@AzothAmmo AzothAmmo closed this Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants