In yaml-cpp, can the node tags be used to store custom data?

297 views Asked by At

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

There are 1 answers

0
Zig Razor On BEST 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.