We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
da_move
ded/src/common.h
Lines 37 to 43 in 57d23fa
I think that we should "clear" src after moving it to dst (setting (src).items = NULL; and zeroing its count and capacity).
src
dst
(src).items = NULL;
count
capacity
Since src still holds a pointer to items it could cause undesired side effects.
items
The text was updated successfully, but these errors were encountered:
I think this is a C++ problem. And C is immune.
Sorry, something went wrong.
No branches or pull requests
ded/src/common.h
Lines 37 to 43 in 57d23fa
I think that we should "clear"
src
after moving it todst
(setting(src).items = NULL;
and zeroing itscount
andcapacity
).Since
src
still holds a pointer toitems
it could cause undesired side effects.The text was updated successfully, but these errors were encountered: