Closed AntonSulimenkoHarman closed 1 month ago
Yes, constexpr
will be better. Thanks to pointing this out!
We will have to check all consts in the generated code and in the C++ runtime library because of that. It would be good to have constexpr wherever it is possible.
Thanks. It works like a charm.
zs file
generated c++ file
https://github.com/ndsev/zserio/blob/master/test/language/literals/cpp/LiteralsTest.cpp It should be possible to test all literals with static_assert()