Skip to content

Fix VariableBlockVector's CreateIterator

When the postfix increment operator is used, block sizes will not be set properly, see #56 (closed).

This implementation places the allocation into the destructor of the iterator.

It does not need additional structures.

This MR also fixes the test for interoperability with STL algorithms: As the CreateIterator is only an output iterator, use std::fill_n() instead of std::fill().

See !249 (closed). Fixes #56 (closed).

Edited by Steffen Müthing

Merge request reports

Loading