yaml_cpp_struct
yaml_cpp_struct copied to clipboard
Nested structure with std::optional types
It seems like gives an error when deserializing nested structs that have optional fields. Example:
struct Child
{
std::optional<int32_t> age; // Error because couldn't find "age"
};
struct Parent
{
Child child;
};