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