]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove AssertGlobalIndexRange. 4257/head
authorDavid Wells <wellsd2@rpi.edu>
Thu, 13 Apr 2017 22:57:41 +0000 (18:57 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 13 Apr 2017 22:57:41 +0000 (18:57 -0400)
The expansion of this macro involves the nonexistent class template
ExcIndexRange<T> and was never used inside the library.

doc/news/changes/incompatibilities/20170413DavidWells [new file with mode: 0644]
include/deal.II/base/exceptions.h

diff --git a/doc/news/changes/incompatibilities/20170413DavidWells b/doc/news/changes/incompatibilities/20170413DavidWells
new file mode 100644 (file)
index 0000000..2260db8
--- /dev/null
@@ -0,0 +1,3 @@
+Changed: The <code>AssertGlobalIndexRange</code> macro has been removed: the expansion of this macro involved an undeclared template and always generates compiler errors if used.
+<br>
+(David Wells, 2017/04/13)
index bda1026865c75a05bc27ef9cc6e06c67057afd80..5b80e219ddba589ecd50248cbdcf6f917a232860 100644 (file)
@@ -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 <code>[0,range)</code>. It throws an exception object
- * <code>ExcIndexRange(index,0,range)</code> 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<types::global_dof_index>((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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.