-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
array insertion fails const iterator conversion #32
Comments
I've implemented a fix for the iterator conversion though in doing so I've realized that what you're trying to do in this snippet won't work anyway; I don't really have a good alternative without restructuring the node<=>table/array/value relationships to rely on something other than inheritance (as mentioned in #31). I'd really like to avoid introducing a 'moved from' or invalid state to the node objects (currently if a node exists it is a valid something), but I can implement something like std::list's I could also provide some means for working with the underlying |
The iterator conversion fix is live in 289c95c, though it doesn't solve the underlying issue I discuss above. I'll leave this issue open and await your ideas on a path forward, since my fix of the issue doesn't really get at the heart of it just yet. |
In my code I was actually visiting the node before moving it. The code above was for exposition only. Incidentally, you currently have I'm going to consider this closed. Thanks for the rapid fix! |
RE visit: toml++'s |
The text was updated successfully, but these errors were encountered: