From b02ce8ee1ae639d922409ea0ebab816f924fa00f Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 16 Jan 2013 03:36:12 +0000 Subject: [PATCH] Relax assertion. git-svn-id: https://svn.dealii.org/trunk@28073 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/utilities.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deal.II/include/deal.II/base/utilities.h b/deal.II/include/deal.II/base/utilities.h index e9a2933fc4..c2bf55e65a 100644 --- a/deal.II/include/deal.II/base/utilities.h +++ b/deal.II/include/deal.II/base/utilities.h @@ -721,7 +721,10 @@ namespace Utilities const T &val, const Comp comp) { - Assert (last >= first, + // verify that the two iterators are properly ordered. since + // we need operator- for the iterator type anyway, do the + // test as follows, rather than via 'last >= first' + Assert (last - first >= 0, ExcMessage ("The given iterators do not satisfy the proper ordering.")); unsigned int len = last-first; -- 2.39.5