Skip to content

[bugfix] fix the return type of DynamicVector::operator[]

Bernd Flemisch requested to merge fix/dynamicvector-access into master

The return type for operator[] of a std::vector is std::vector::(const_)reference. The implementation of DynamicVector assumed that this coincides with (const) K&. However, for K = bool, it doesn't. See Issue #19 (closed). Thanks to @pipping for the fix.

Merge request reports

Loading