-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
add inline specifier for detail::combine #2285
Conversation
Thanks! Can you please also run the amalgamation? |
oh, yea. Sorry, I forgot that. I hope it's fine like this. |
I think we should add a regression test for this - at least something basic that consists of two translation units. But this would be out of scope of this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks! |
fix compiles where multiple source files include the header and generate multiple definitions of
nlohmann::detail::combine
by adding an inline specifier.I hope it's okay I skipped the unit test and stuff since I would figure this literally can't break anything.
Fixes #2281.