From 4c4ff05b93a6861bd8c1bd5d06510303b6399400 Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Sun, 10 May 2020 12:32:30 +0200 Subject: [PATCH] fixed minof --- include/gp/algorithm/min_of.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gp/algorithm/min_of.hpp b/include/gp/algorithm/min_of.hpp index 9892052..1159ea3 100644 --- a/include/gp/algorithm/min_of.hpp +++ b/include/gp/algorithm/min_of.hpp @@ -11,7 +11,7 @@ namespace gp{ template 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) {