]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use only enough bits in an enum as necessary. 14137/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 15 Jul 2022 03:21:55 +0000 (21:21 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 15 Jul 2022 03:21:55 +0000 (21:21 -0600)
include/deal.II/base/geometry_info.h

index ab7ac139e490a8869fa67eebd7d28cb62840daec..71c57223f9a6f69c47326023f164ec0563d3d622 100644 (file)
@@ -520,7 +520,7 @@ struct RefinementPossibilities
    * local coordinate system within the global coordinate system of the
    * space it lives in.
    */
-  enum Possibilities
+  enum Possibilities : std::uint8_t
   {
     /**
      * Do not perform refinement.
@@ -590,7 +590,7 @@ struct RefinementPossibilities<1>
    * local coordinate system within the global coordinate system of the
    * space it lives in.
    */
-  enum Possibilities
+  enum Possibilities : std::uint8_t
   {
     /**
      * Do not refine.
@@ -656,7 +656,7 @@ struct RefinementPossibilities<2>
    * local coordinate system within the global coordinate system of the
    * space it lives in.
    */
-  enum Possibilities
+  enum Possibilities : std::uint8_t
   {
     /**
      * Do not refine.
@@ -731,7 +731,7 @@ struct RefinementPossibilities<3>
    * local coordinate system within the global coordinate system of the
    * space it lives in.
    */
-  enum Possibilities
+  enum Possibilities : std::uint8_t
   {
     /**
      * Do not refine.

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.