langroodi / Adaptive-AUTOSAR

Adaptive Runtime AUTOSAR Linux Simulator
MIT License
399 stars 159 forks source link

nlohmann json with Clang #19

Closed langroodi closed 1 year ago

langroodi commented 1 year ago

Describe the bug The nlohmann json header has different behavior while switching compiler between GCC and Clang. The current code within Extended Vehicle AA now only works with GCC.

To Reproduce Switch the compiler to Clang, compile the source and launch the application after the compile. Type an invalid API key and then an invalid access token when the application ask for it at the startup. Then, you will notice that the Extended Vehicle AA will crash.

Expected behavior The setting VIN logic should be compiler independent.

Additional context (please complete the following information):