From: David Wells Date: Thu, 13 Apr 2017 22:57:41 +0000 (-0400) Subject: Remove AssertGlobalIndexRange. X-Git-Tag: v9.0.0-rc1~1696^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a212b705ddb2552892ecd62d198d1e2e013d119;p=dealii.git Remove AssertGlobalIndexRange. The expansion of this macro involves the nonexistent class template ExcIndexRange and was never used inside the library. --- diff --git a/doc/news/changes/incompatibilities/20170413DavidWells b/doc/news/changes/incompatibilities/20170413DavidWells new file mode 100644 index 0000000000..2260db8f53 --- /dev/null +++ b/doc/news/changes/incompatibilities/20170413DavidWells @@ -0,0 +1,3 @@ +Changed: The AssertGlobalIndexRange macro has been removed: the expansion of this macro involved an undeclared template and always generates compiler errors if used. +
+(David Wells, 2017/04/13) diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index bda1026865..5b80e219dd 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -1170,21 +1170,6 @@ namespace StandardExceptions #define AssertIndexRange(index,range) Assert((index) < (range), \ dealii::ExcIndexRange((index),0,(range))) -/** - * An assertion that tests that a given index is within the half-open - * range [0,range). It throws an exception object - * ExcIndexRange(index,0,range) if the assertion - * fails. - * - * This variation of the AssertIndexRange assertion is used for indices of type - * types::global_dof_index for which we need to make special accommodations because - * they may not fit into the regular 32-bit integer indices used in AssertIndexRange. - * - * @ingroup Exceptions - */ -#define AssertGlobalIndexRange(index,range) Assert((index) < (range), \ - dealii::ExcIndexRange((index),0,(range))) - /** * An assertion that checks whether a number is finite or not. We explicitly * cast the number to std::complex to match the signature of the exception