add assert to notify incurred UB in case a node was linked during send_down#224
add assert to notify incurred UB in case a node was linked during send_down#224arximboldi merged 2 commits intoarximboldi:masterfrom
Conversation
|
What are you doing in your The callback to |
|
yea i was doing something like this: with with further testing and thinking i think it makes no sense like this and i changed the approach. ill see if i can find a way to notify if this happens during debugging. |
|
I see :) If you're using If you find a cheap way to test for this mistake at runtime feel free to update the PR :) |
|
i added an assert to test this mistake, there should be no cost in release build. ill squash and edit the pr title soon. |
similar to the notify loop
#212
it is possible to invalidate the iterators when new cursors are created during send_down for example in a reader::map() execution.
this should be fixed by using index based for loop analog to the notify function.
another solution would be to trow an error if that happens if one should not use that pattern.