Explorar el Código

fixed minof

devel
Ludovic 'Archivist' Lagouardette hace 4 años
padre
commit
4c4ff05b93
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      include/gp/algorithm/min_of.hpp

+ 1
- 1
include/gp/algorithm/min_of.hpp Ver fichero

@ -11,7 +11,7 @@ namespace gp{
template<typename it, typename transform>
auto&& min_of(it beg, it end, transform fn = identity) {
gp_config::assertion(beg == end, "min_of provided with empty range");
gp_config::assertion(beg != end, "min_of provided with empty range");
auto fn_v = fn(*beg);
++beg;
while(beg != end) {

Cargando…
Cancelar
Guardar