]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around an issue with non-exportable names. 18474/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 27 Feb 2025 16:08:46 +0000 (09:08 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 May 2025 15:31:11 +0000 (09:31 -0600)
include/deal.II/boost_adaptors/bounding_box.h

index 055cc8b045a8ab3fa2a443c7a26667ab1adca476..0f88ba82988118a473a53b10e56c262a34b5324b 100644 (file)
@@ -59,7 +59,18 @@ namespace boost
        * dealii::BoundingBox.
        */
       template <int dim, class Number, std::size_t D>
-      struct indexed_access<dealii::BoundingBox<dim, Number>, min_corner, D>
+      struct indexed_access<dealii::BoundingBox<dim, Number>,
+#if DEAL_II_BOOST_VERSION_GTE(1, 89, 0)
+                            min_corner,
+#else
+                            // Until Boost 1.88, max_corner was a
+                            // static variable in a header file, which
+                            // we can't export in the module wrapper
+                            // for Boost. Use the variable's numeric
+                            // value instead.
+                            /*min_corner*/ 0,
+#endif
+                            D>
       {
         /**
          * Getter function for the D-th coordinate of the lower left corner of
@@ -87,7 +98,18 @@ namespace boost
        * dealii::BoundingBox.
        */
       template <int dim, class Number, std::size_t D>
-      struct indexed_access<dealii::BoundingBox<dim, Number>, max_corner, D>
+      struct indexed_access<dealii::BoundingBox<dim, Number>,
+#if DEAL_II_BOOST_VERSION_GTE(1, 89, 0)
+                            max_corner,
+#else
+                            // Until Boost 1.88, max_corner was a
+                            // static variable in a header file, which
+                            // we can't export in the module wrapper
+                            // for Boost. Use the variable's numeric
+                            // value instead.
+                            /*max_corner*/ 1,
+#endif
+                            D>
       {
         /**
          * Getter function for the D-th coordinate of the upper right corner of

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.