yaml-cpp: Unsupported merges
Current version of otherwise great yaml-cpp does not seem to support merges
in a way described for example here:
http://en.wikipedia.org/wiki/YAML#Data_merge_and_references
I don't have a deep knowledge of yaml-cpp internals (I am just its user),
but maybe this is somehow linked with the cloning problem - not yet
sufficiently solved.
I have tested the simple form of a merge in yaml-cpp 0.2.0 on RedHat Linux
3.4.6-9 using gcc 3.4.6 (20060404) - it doesn't work, but at least it
doesn't hurt the parser. With that gcc I am unable to compile 0.2.1 because
of new conversion operators in nodeimpl.h (it reported an error on lines
with "node.Read<T>" and the thing that caused that error was very probably
the templated read).
Do you plan to support merges in some future version?
Original issue reported on code.google.com by pole...@gmail.com on 8 Sep 2009 at 10:38
About this issue
- Original URL
- State: open
- Created 9 years ago
- Comments: 22 (1 by maintainers)
Commits related to this issue
- Adding support for handling YAML Merge Key (#41) Support for YAML Merge keys ( <<: [*dict1, *dict2] ) is added. The merge key is a specific scalar with value << (and tag !!merge) that implies that du... — committed to Broadpeak-tv/yaml-cpp by nlescoua 8 months ago
- Adding support for handling YAML Merge Key (#41) Support for YAML Merge keys ( <<: [*dict1, *dict2] ) is added. The merge key is a specific scalar with value << (and tag !!merge) that implies that du... — committed to Broadpeak-tv/yaml-cpp by nlescoua 8 months ago
- Merge commit 'refs/pull/1243/head' of github.com:jbeder/yaml-cpp into update-lib-and-merge-operator * github.com:jbeder/yaml-cpp: Fix merge-key handling in case the dictionary contains a sub-dictio... — committed to azat-ch/yaml-cpp by azat 2 months ago
- Merge branch 'merge-operator' into update-lib-and-merge-operator * merge-operator: Fix merge operator support (that can be visible by iterating through the node) Fix merge-key handling in case th... — committed to azat-ch/yaml-cpp by azat 2 months ago
- Merge branch 'merge-operator' into update-lib-and-merge-operator * merge-operator: Fix order for merging iterator Remove cast to const from MergeMapCollection() Fix merge operator support (that... — committed to azat-ch/yaml-cpp by azat 2 months ago
- Merge branch 'merge-operator' into update-lib-and-merge-operator * merge-operator: Fix order for merging iterator Fix merge operator support (that can be visible by iterating through the node) ... — committed to azat-ch/yaml-cpp by azat 2 months ago
This is a good point, and I’m not sure.
This is a pretty big feature, and would need thorough review. I’m the only maintainer, and I unfortunately don’t have time for it. I also (as you can see by this history of this feature) never really thought much of this feature.
I’ve been unable to find someone to help maintain this project (any takers?). If I found someone who I trusted and is willing to support and review this feature, then I’d be open to accepting this feature.
Also, thanks for the links to the other feature requests, and they should at least be closed as dupes of this one.