]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Another try for MSVC 15308/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 6 Jun 2023 14:14:23 +0000 (10:14 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 6 Jun 2023 15:42:04 +0000 (11:42 -0400)
source/base/qprojector.cc

index 95b525c2ba3e308e0b29a08eea588f2291b76b63..1acd7c7f01b3e464e72f6f8b8d1b09c3e076daf2 100644 (file)
@@ -769,7 +769,8 @@ QProjector<2>::project_to_all_faces(const ReferenceCell &     reference_cell,
     {
       const auto support_points_line =
         [](const auto &face, const auto &orientation) -> std::vector<Point<2>> {
-        const Point<2> *          vertices_ptr = face.first.begin();
+        // MSVC struggles when using face.first.begin()
+        const Point<2, double> *  vertices_ptr = &face.first[0];
         ArrayView<const Point<2>> vertices(vertices_ptr, face.first.size());
         const auto                temp =
           ReferenceCells::Line.permute_by_combined_orientation(vertices,

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.