Skip to content

rfl::toml::read() doesn't compile (cannot convert from 'toml::v3::noex::parse_result *' to 'rfl::toml::InputVarType') #436

@Please-just-dont

Description

@Please-just-dont

So I see that reflect-cpp switched back to toml++ back from toml11. So I downloaded the latest version of reflect-cpp and the latest version of toml++ and there is a compile error in Reader.hpp.

struct MyStruct { int a; }

std::string str;

rfl::toml::read<MyStruct>(str); // DOESN'T COMPILE 

Error:

Reason: cannot convert from 'toml::v3::noex::parse_result *' to 'const std::string'

And:

'initializing': cannot convert from 'toml::v3::noex::parse_result *' to 'rfl::toml::InputVarType'

Which is the same issue I was having months back when I raised this point, see:

#383

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions