majintao0131 / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Node.Clear() function gives compile error in Linux #168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Example code
doc = YAML::LoadFile(filename);
doc.Clear(); // Gives compile time ERROR

What is the expected output? What do you see instead?
Should clear the doc stream!

What version of the product are you using? On what operating system?
0.3.0 in Ubuntu 11.x

Please provide any additional information below.
Simply use of line Node_Object.Clear(); gives compile time error in Linux.

Original issue reported on code.google.com by rudrapou...@gmail.com on 25 Jul 2012 at 7:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Is this a feature request? There's no method Node::Clear - you're asking for 
one?

Instead, just try

doc = YAML::Node();

Original comment by jbe...@gmail.com on 25 Jul 2012 at 9:26

GoogleCodeExporter commented 9 years ago
Yes, Node_object.Clear() feature would be nice. Sorry, my eclipse autocomplete 
was showing Clear() method previously, dont know why.

Original comment by rudrapou...@gmail.com on 26 Jul 2012 at 8:43

GoogleCodeExporter commented 9 years ago
Added Node::clear(), r24ebc33a2e27.

Original comment by jbe...@gmail.com on 9 Nov 2012 at 12:48