graehl / yaml-cpp-old

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

Missing YAML::Node equality operator #274

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
YAML::Load("{[0o13]:{a:0, b:1}").equals(YAML::Load("{[0xB]:{b:1, a:0}"))

What is the expected output? What do you see instead?
true. compilation error.

What version of the product are you using? On what operating system?
0.5.1

Please provide any additional information below.
YAML 1.2 recognizes identity and equality as separate concepts as per 
http://www.yaml.org/spec/1.2/spec.html#id2764652

yaml-cpp currently implements identity using Node::is, but is missing an 
equality checking operator for use in deep content-based comparisons.

Original issue reported on code.google.com by iridian....@googlemail.com on 3 Feb 2015 at 7:28

GoogleCodeExporter commented 9 years ago
Err, my apologies, this isn't a defect but enchancement request.

Original comment by iridian....@googlemail.com on 3 Feb 2015 at 7:31

GoogleCodeExporter commented 9 years ago
See Issue 60. Equality depends on schema, which is not one of yaml-cpp's 
better-defined concepts.

Original comment by jbe...@gmail.com on 3 Feb 2015 at 2:08