Skip to content

rfl::NoOptionals incorrect for TOML #656

Description

@PeakKS

When a std::optional<struct> is written to toml with rfl::NoOptionals, it is ouput as field = '', but this causes a parse error if you try to read it back: Could not cast to a table!

I believe the correct functionality would be to write it as field = {} instead.

Note: I'm using it through using ReflectionType = std::optional<T> if that makes any difference.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions