Skip to content

Conversation

@hikinggrass
Copy link
Member

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 <kai-uwe.hermann@pionix.de>
@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
@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.

4 participants