Am i missing some thing or isnt it possible to parse YAML formatted strings with yaml-cpp?
at least there isnt a YAML::Parser::Parser(std::string&) constructor. i get a yaml-string via libcurl from a http-server.
Am i missing some thing or isnt it possible to parse YAML formatted strings with yaml-cpp?
at least there isnt a YAML::Parser::Parser(std::string&) constructor. i get a yaml-string via libcurl from a http-server.
Try using a stringstream:
std::string s = "name: YAML from libcurl";
std::stringstream ss(s);
YAML::Parser parser(ss);