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) {