From: Daniel Arndt Date: Thu, 20 Jul 2023 21:45:34 +0000 (-0400) Subject: Add static call operator to C++23 feature check X-Git-Tag: relicensing~664^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15772%2Fhead;p=dealii.git Add static call operator to C++23 feature check --- diff --git a/cmake/checks/check_01_cxx_features.cmake b/cmake/checks/check_01_cxx_features.cmake index e54e413356..462774b39b 100644 --- a/cmake/checks/check_01_cxx_features.cmake +++ b/cmake/checks/check_01_cxx_features.cmake @@ -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)