]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove const and fix type of static_cast 10317/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 22 May 2020 19:10:46 +0000 (15:10 -0400)
committerTimo Heister <timo.heister@gmail.com>
Fri, 22 May 2020 19:29:20 +0000 (15:29 -0400)
nvcc with gcc 8 complains that the const here is unnecessary.

include/deal.II/base/table_indices.h

index 3c9cd89677bf815fa4fc248173b9cc1ac4359f9d..f855eb00ddf9e6c02931a70bc8998e2a86ba4290 100644 (file)
@@ -115,7 +115,7 @@ protected:
 template <int N>
 template <typename... T>
 constexpr TableIndices<N>::TableIndices(const T... args)
-  : indices{static_cast<const unsigned int>(args)...}
+  : indices{static_cast<std::size_t>(args)...}
 {
   static_assert(internal::TemplateConstraints::all_true<
                   std::is_integral<T>::value...>::value,

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.