* Copied Tutorial from Google Code wiki. * Initial Home page * Copied How To Parse A Document from Google Code wiki * Updated How To Parse A Document (markdown) * Updated How To Parse A Document (markdown) * Updated How To Parse A Document (Old API) (markdown) * Copied How To Emit YAML from Google Code wiki * Copied Breaking Changes from Google Code wiki * Copied Strings from Google Code wiki * Updated Strings (markdown) * Updated Home (markdown) * Fix typo. * Updated Breaking Changes (markdown) * Updated How To Parse A Document (Old API) (markdown) * Updated Breaking Changes (markdown) * Move wiki content to docs/ * Improve markdown and add colored code syntax Co-authored-by: Jesse Beder <jbeder+github@gmail.com>
1.5 KiB
1.5 KiB
The following is a list of breaking changes to yaml-cpp, by version
New API
HEAD
none
0.6.0
- Requires C++11.
0.5.3
none
0.5.2
none
0.5.1
Node::clearwas replaced byNode::reset, which takes an optional node, similar to smart pointers.
0.5.0
Initial version of the new API.
Old API
0.3.0
none
0.2.7
YAML::Binarynow takesconst unsigned char *for the binary data (instead ofconst char *).
0.2.6
Node::GetType()is nowNode::Type(), and returns an enumNodeType::value, where:
struct NodeType { enum value { Null, Scalar, Sequence, Map }; };
Node::GetTag()is nowNode::Tag()Node::Identity()is removed, andNode::IsAlias()andNode::IsReferenced()have been merged intoNode::IsAliased(). The reason: there's no reason to distinguish an alias node from its anchor - whichever happens to be emitted first will be the anchor, and the rest will be aliases.Node::Read<T>is nowNode::to<T>. This wasn't a documented function, so it shouldn't break anything.Node's comparison operators (for example,operator == (const Node&, const T&)) have all been removed. These weren't documented either (they were just used for the tests), so this shouldn't break anything either.- The emitter no longer produces the document start by default - if you want it, you can supply it with the manipulator
YAML::BeginDoc.
0.2.5
This wiki was started with v0.2.5.