New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replacing Values in a toml::array
#109
Comments
Thanks for the suggestion. I can't implement this as operator[] because of the polymorphic nature of the data (well, I can, but not in the current design, and it necessitates a big rewrite), but I can implement it using a member function, e.g. |
@marzer Thank you for the proposed solution. I look forward to using |
@LebJe If you're still interested in this feature I've pushed an implementation of it to the v3 branch. I won't merge v3 into master for a while yet since there's more work to be done before I cook a new release, but I welcome you to try it before then. (Do note that the v3 branch will be a massive ABI break so I'm not promising it will just work out-of-the-box without requiring a code change or two) The full list of changes in the v3 branch can be found here. |
@marzer Thank you very much! I've tested some of the features in the |
@LebJe Awesome, good to hear. Somewhat related: I happened to notice you have a couple TOML parser+serializer projects in other languages that use toml++ as the native backend, meaning you're probably more sensitive to API and ABI changes than most. I'll try to keep CHANGELOG.md as up-to-date and detailed as I possibly can so you can get out in front of those breaks early. Please let me know if you see something I've missed. |
Is your feature request related to a problem? Please describe.
It seems that there's no way to replace a value in a
toml::array
. Currently, I'm using this code:Describe the solution you'd like
I would like a way to easily replace a value, something like
operator[]
instd::vector
:Additional context
None
The text was updated successfully, but these errors were encountered: