I could not find equivalent code for new YAMLcpp version p->GetNextDocument( n )
.
old API:
std::ifstream fin(config_file);
YAML::Parser parser(fin);
YAML::Node doc;
parser.GetNextDocument(doc);
new API:
std::ifstream fin(config_file);
YAML::Node doc = YAML::Load(fin);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With