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

Binding json default construct to use initializer list based constructor #179

Conversation

hikinggrass
Copy link
Contributor

GCC 7.3 generates a null string for json({}), and not {}. With this workaround, the right constructor is selected providing {}.

This is based on #178 but fixes the code generator to extend the fix to all messages of OCPP 1.6 and 2.0.1

@bWF0dGhpYXMK
Copy link
Contributor

Thank you!

@hikinggrass hikinggrass force-pushed the kh-binding-json-default-constructor-to-use-initializer-list branch from b5a6167 to 1494759 Compare September 28, 2023 20:39
GCC 7.3 generates a null string for json({}), and not {}.
With this workaround, the right constructor is selected providing {}.

This is based on #178 but fixes the code generator to extend the fix to all messages of OCPP 1.6 and 2.0.1

Signed-off-by: Kai-Uwe Hermann <[email protected]>
@Pietfried Pietfried force-pushed the kh-binding-json-default-constructor-to-use-initializer-list branch from 1494759 to f04fc57 Compare October 2, 2023 08:26
@hikinggrass hikinggrass merged commit 3bb5418 into main Oct 2, 2023
3 checks passed
@hikinggrass hikinggrass deleted the kh-binding-json-default-constructor-to-use-initializer-list branch October 2, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants