Using std::remove_if alone only does some rearranging and changing elements of _blocks, and that doesn't seem what's intended there. If everyone is using C++20 std::erase_if can be used instead of the erase - remove idiom.
BEGINRELEASENOTES
Fix possibly wrong behavior with std::remove_if with a erase - remove idiom
Using
std::remove_if
alone only does some rearranging and changing elements of_blocks
, and that doesn't seem what's intended there. If everyone is using C++20std::erase_if
can be used instead of theerase - remove
idiom.BEGINRELEASENOTES
std::remove_if
with aerase - remove
idiomENDRELEASENOTES