Closed GoogleCodeExporter closed 8 years ago
I don't know if this is the same problem or not, but it's a similar problem
with remove so I'll add it:
YAML::Node node;
std::cout << node.size() << std::endl;
//node[0] = YAML::Node();
node[1] = YAML::Node();
node[2] = YAML::Node();
std::cout << node.size() << std::endl;
node.remove(2);
std::cout << node.size() << std::endl;
Output:
0
2
1
Un-comment the line and output:
0
3
3
Original comment by UGWil...@gmail.com
on 11 Aug 2014 at 4:34
Yeah, that's the same question - with the line uncommented, "node" is a
sequence, so "remove" has no effect.
Original comment by jbe...@gmail.com
on 11 Aug 2014 at 1:06
This issue has moved to github: https://github.com/jbeder/yaml-cpp/issues/190
Original comment by jbe...@gmail.com
on 1 Apr 2015 at 3:20
Original issue reported on code.google.com by
jbe...@gmail.com
on 31 Jan 2013 at 6:48