From 1c5d4d4d22add852d11706d4370ab8e41efc6f93 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Mon, 3 Feb 2025 14:13:54 -0500 Subject: [PATCH] Update comment --- cpp/include/Ice/StreamHelpers.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/include/Ice/StreamHelpers.h b/cpp/include/Ice/StreamHelpers.h index 15a1343b7fd..5ccc45da07e 100644 --- a/cpp/include/Ice/StreamHelpers.h +++ b/cpp/include/Ice/StreamHelpers.h @@ -10,7 +10,9 @@ #include #include -#if defined(_MSC_VER) // workaround for MSVC bug +#if defined(_MSC_VER) +// With MSVC, __has_include() evaluates to 1 in c++17 mode and the header then issues a warning. This +// is a permissible but impractical behavior. As a result, we include only in c++20 mode. # if _MSVC_LANG >= 202002L # include # endif