From 0017631830f6572d1f66ef1856b8e796b27bcbe2 Mon Sep 17 00:00:00 2001 From: stotiks <47013208+stotiks@users.noreply.github.com> Date: Fri, 3 May 2024 00:03:53 +0300 Subject: [PATCH] Fix warning when including in C++17 (#197) --- include/lexy/callback/bit_cast.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lexy/callback/bit_cast.hpp b/include/lexy/callback/bit_cast.hpp index 66688138..9401c00f 100644 --- a/include/lexy/callback/bit_cast.hpp +++ b/include/lexy/callback/bit_cast.hpp @@ -16,7 +16,7 @@ #ifndef LEXY_HAS_BITCAST # if defined(__has_include) -# if __has_include() +# if __has_include() && __cplusplus >= 202002L # include # ifdef __cpp_lib_bit_cast # define LEXY_HAS_BITCAST 1