Skip to content

Conversation

@rajashekar007
Copy link

As deferements are iterated using range based loop, when there is a recursive defer, it's corrupting the variable. The loop iteration has been changed to use index based to fix the same.

Kindly review it.

@AzothAmmo
Copy link
Contributor

This strikes me as likely an incorrect usage of cereal::defer - it shouldn't be used in situations where there is any recursive structure to serialize as this defeats the purpose of the deferment in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants