certik / yaml-cpp

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

public access to detail::node::ref for node identity #222

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
using yaml-cpp 0.5.1, there's still no way to hash on node identity (or 
otherwise detect loops in the graph) - see 
http://stackoverflow.com/questions/19743063/how-to-tell-if-ive-already-processed
-a-node

.is() is quadratic. we need an .id(). it can be hashed if you like if you want 
to prevent access to detail:: internals.

Original issue reported on code.google.com by graehl on 4 Nov 2013 at 6:22

GoogleCodeExporter commented 9 years ago

Original comment by jbe...@gmail.com on 4 Nov 2013 at 10:48