From 9d1cdce6b0f8065f974551fff16c0d43b493c391 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 15 Aug 2021 17:47:04 -0600 Subject: [PATCH] Use std::size_t for index types. --- include/deal.II/base/exceptions.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 ? -- 2.39.5