I'm thinking of assigning my own unique id string to each YAML::Node via the SetTag() function. Is this possible, or is yaml-cpp referencing these tags internally, and it'll get confused?
Also, is this likely to be a problem in future versions of the library?
1 Answer
Yes, it's possible!The yaml-cpp tags are intended for this purpose.
Also, is this likely to be a problem in future versions of the library?
It should not create problem in the future version of the library, but for safety you can ask a question to the mantainer on the github repo of the library opening an issue or a discussion if possible.
SetTag()for exactly this purpose. Note however, that I also had a few issues with the tag support in yaml-cpp: stackoverflow.com/questions/74502063/…