From: bangerth Date: Wed, 16 Jan 2013 03:36:12 +0000 (+0000) Subject: Relax assertion. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b02ce8ee1ae639d922409ea0ebab816f924fa00f;p=dealii-svn.git Relax assertion. git-svn-id: https://svn.dealii.org/trunk@28073 0785d39b-7218-0410-832d-ea1e28bc413d --- 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;