From 1afa8aca9ae78c91fcd8ccf85e125e9b9f5d8754 Mon Sep 17 00:00:00 2001 From: Davis King Date: Thu, 2 Feb 2012 19:28:22 -0500 Subject: [PATCH] Fixed incorrect assert --- dlib/statistics/statistics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlib/statistics/statistics.h b/dlib/statistics/statistics.h index 311a12f89..25295b997 100644 --- a/dlib/statistics/statistics.h +++ b/dlib/statistics/statistics.h @@ -90,7 +90,7 @@ namespace dlib ) const { // make sure requires clause is not broken - DLIB_ASSERT(current_n() > 1, + DLIB_ASSERT(current_n() > 0, "\tT running_stats::max" << "\n\tyou have to add some numbers to this object first" << "\n\tthis: " << this @@ -103,7 +103,7 @@ namespace dlib ) const { // make sure requires clause is not broken - DLIB_ASSERT(current_n() > 1, + DLIB_ASSERT(current_n() > 0, "\tT running_stats::min" << "\n\tyou have to add some numbers to this object first" << "\n\tthis: " << this