mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
bec07d6c0a
An std::optional lets you distinguish between a value that isn't provided at all (std::optional will be empty) versus one that is provided as a default value (for example, a std::string specified as empty). On serialization, a null optional is not serialized at all; on deserialization the optional is reset if omitted, otherwise set to the specified value. This also cleans up the serialization code to use simpler C++17 `if constexpr`s rather than SFINAE overloads for the different serialization cases. |
||
---|---|---|
.. | ||
brew | ||
codefresh | ||
epee | ||
fuzz_testing | ||
rlwrap | ||
snap | ||
valgrind | ||
CMakeLists.txt |