]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid std::initializer_list
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 4 Jun 2020 13:44:06 +0000 (09:44 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 4 Jun 2020 13:44:06 +0000 (09:44 -0400)
source/grid/tria.cc

index 89c60745ada15931d4ecaaea65abb760cd8e90f6..bb8c84fce7175fbed5b528ddd02099e0e8af2383 100644 (file)
@@ -2701,7 +2701,7 @@ namespace internal
 
       /**
        * Invent an object which compares two
-       * std::initializer_list objects against each
+       * std::vector objects against each
        * other. This comparison is needed in order to establish a map of
        * vertex index tuples to iterators in the
        * Triangulation<3,3>::create_triangulation function.
@@ -3052,7 +3052,7 @@ namespace internal
                 // new one and instead
                 // later set the
                 // face_orientation flag
-                const std::initializer_list<int> test_quad_1(
+                const std::vector<int> test_quad_1(
                   {quad[2],
                    quad[3],
                    quad[0],
@@ -3242,7 +3242,7 @@ namespace internal
                       // then. construct all
                       // possibilities and check
                       // them one after the other
-                      const std::initializer_list<int> test_quad_1(
+                      const std::vector<int> test_quad_1(
                         {quad[2],
                          quad[3],
                          quad[0],

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.