From a680ca3e8572dd152f54a9d9f63b82e66ac7664c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 6 Feb 2026 22:51:39 +0200 Subject: [PATCH] Exclude clang-cl from msvc workaround --- test/algorithm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/algorithm.cpp b/test/algorithm.cpp index 024e404..26459ba 100644 --- a/test/algorithm.cpp +++ b/test/algorithm.cpp @@ -23,13 +23,13 @@ #define _SCL_SECURE_NO_WARNINGS #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) // counting_iterator generates a warning about truncating an integer #pragma warning(push) #pragma warning(disable : 4244) #endif #include -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) template ::boost::counting_iterator; #pragma warning(pop) #endif