]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use std::size_t for index types. 12657/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 15 Aug 2021 23:47:04 +0000 (17:47 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 15 Aug 2021 23:47:04 +0000 (17:47 -0600)
include/deal.II/base/exceptions.h

index 16018caa0724ab1352bad0fe2a8a09e1daaca032..d882028436d445e2c04048a3d27eaf9344c63f92 100644 (file)
@@ -930,9 +930,9 @@ namespace StandardExceptions
    * but it is neither.
    */
   DeclException3(ExcDimensionMismatch2,
-                 int,
-                 int,
-                 int,
+                 std::size_t,
+                 std::size_t,
+                 std::size_t,
                  << "Dimension " << arg1 << " neither equal to " << arg2
                  << " nor to " << arg3 << ".");
 
@@ -941,7 +941,7 @@ namespace StandardExceptions
    * For example, it may be that you are trying to access an element of a
    * vector which does not exist.
    *
-   * The constructor takes three <tt>int</tt> arguments, namely
+   * The constructor takes three <tt>std::size_t</tt> arguments, namely
    * <ol>
    * <li> the violating index
    * <li> the lower bound
@@ -950,9 +950,9 @@ namespace StandardExceptions
    */
   DeclException3(
     ExcIndexRange,
-    int,
-    int,
-    int,
+    std::size_t,
+    std::size_t,
+    std::size_t,
     << "Index " << arg1 << " is not in the half-open range [" << arg2 << ","
     << arg3 << ")."
     << (arg2 == arg3 ?

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.