From: Wolfgang Bangerth Date: Sun, 15 Aug 2021 23:47:04 +0000 (-0600) Subject: Use std::size_t for index types. X-Git-Tag: v9.4.0-rc1~1078^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12657%2Fhead;p=dealii.git Use std::size_t for index types. --- diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 16018caa07..d882028436 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -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 int arguments, namely + * The constructor takes three std::size_t arguments, namely *
    *
  1. the violating index *
  2. 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 ?