Skip to content

legacy vector min max should take const args

Qiaozhi Lei requested to merge legacy-vector-min-max-const-args into master

The free min and max function for the legacy implementation of VectorT (VectorT.hh) only accept mutable (non-const) arguments. When you call these functions with const arguments, the std::min / std::max implementation will match and return the lexicographically smaller argument.

Merge request reports