]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add static call operator to C++23 feature check 15772/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 20 Jul 2023 21:45:34 +0000 (17:45 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 20 Jul 2023 21:45:34 +0000 (17:45 -0400)
cmake/checks/check_01_cxx_features.cmake

index e54e413356bf850be1a023cac56bcf8786ed71fb..462774b39b0277e94027c5b037e6aabbd955f3b4 100644 (file)
@@ -70,6 +70,10 @@ macro(_test_cxx23_support)
     #  error \"insufficient support for C++23\"
     #endif
 
+    struct Dummy {
+      static void operator()() {}
+    };
+
     int main() {}
     "
     DEAL_II_HAVE_CXX23_FEATURES)

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.