yaml_cpp_struct icon indicating copy to clipboard operation
yaml_cpp_struct copied to clipboard

Nested structure with std::optional types

Open requizm opened this issue 10 months ago • 6 comments

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;
};

requizm avatar Apr 25 '24 22:04 requizm