-
Notifications
You must be signed in to change notification settings - Fork 310
Open
Description
struct Design {
std::string name;
};
struct UserYaml {
Design design;
};
std::string read_file(const std::filesystem::path& path) {
std::ifstream file(path);
return std::string{(std::istreambuf_iterator(file)), std::istreambuf_iterator<char>()};
}
const std::string user_yaml_contents = read_file(user_yaml_path);
UserYaml user_yaml;
struct_yaml::from_yaml(user_yaml, user_yaml_contents);The program will terminate called after throwing an instance of 'std::runtime_error'
what(): \n is not expected
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels