tags:

views:

49

answers:

1

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.

+2  A: 

Try using a stringstream:

std::string s = "name: YAML from libcurl";
std::stringstream ss(s);
YAML::Parser parser(ss);
Josh Kelley