Anton Sulimenko
Anton Sulimenko
c++, enhancement, based on zserio 2.12.0 ## 1. Destructor might not reset the `m_hasValue` flag because the destructed object should no longer be used. https://github.com/ndsev/zserio/blob/fe74dfc5c3a976901a1953696d390591b174a358/compiler/extensions/cpp/runtime/src/zserio/OptionalHolder.h#L790 ```cpp ~inplace_optional_holder() { reset(); }...
zserio version: 2.11.0 ```zs 01: package zs; 02: 03: struct PackedArray { 04: varsize size; 05: packed T data[size]; 06: }; 07: 08: instantiate PackedArray PackedArrayString; 09: 10: instantiate PackedArray...
```c++ constexpr ::zserio::StringView stringView = ::zserio::makeStringView("any"); const ::zserio::string stringValue = "any"; constexpr std::string_view stdStringView = "any"; // ::zserio::StringView can be constructed directly from ::zserio::string const bool compareWorkaround = (stringView ==...
Motivation: Cast in zs expressions #510 Simplified example: ```zs struct Fraction { uint8 num; uint8 den; private function float32 numAsFloat32() { return num; } function float32 resultHack2() { return numAsFloat32()...
zs file ``` const string StringViewShouldBeConstexpr = "ShouldBeConstexpr"; const float64 Float64ShouldBeConstexpr = 0; ... ``` generated c++ file ```c++ /*now*/ const ::zserio::StringView StringViewShouldBeConstexpr = ::zserio::makeStringView("ShouldBeConstexpr"); /*new*/ constexpr ::zserio::StringView StringViewShouldBeConstexpr =...
**Zserio version and language** Zserio: 2.14.0 Language: NA **Describe the bug** Conan recipe supports only: ["Linux", "Windows", "Macos"] (https://github.com/conan-io/conan-center-index/blob/master/recipes/zserio/all/conanfile.py#L56) **How to reproduce** Get zserio for Android from Conan. **Expected behavior**...