From 8b16105a3d957871056c04c5de9c7e94325ba31e Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 29 Mar 2024 08:30:03 +0100 Subject: [PATCH] deal with missing --- Number_types/test/Number_types/wrapping_type.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Number_types/test/Number_types/wrapping_type.cpp b/Number_types/test/Number_types/wrapping_type.cpp index 0fead133318..6313e3769a1 100644 --- a/Number_types/test/Number_types/wrapping_type.cpp +++ b/Number_types/test/Number_types/wrapping_type.cpp @@ -1,6 +1,8 @@ #include #include +#include +#if __has_include() #include struct Map { @@ -42,3 +44,10 @@ int main() { } return 0; } + +#else +int main() { + std::cerr << "C++20 not available\n"; + return 0; +} +#endif