From 3b2dbfea08a09cfc8ce68f30971a5090a5ba1a31 Mon Sep 17 00:00:00 2001 From: "James E. King III" Date: Sat, 23 Apr 2022 22:05:10 -0400 Subject: [PATCH] [issue-24] test failure for new clang-win ci job --- .appveyor.yml | 2 +- test/stl_concept_covering.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 1addcea..bd30323 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -65,7 +65,7 @@ environment: B2_TOOLSET: msvc-14.1 - FLAVOR: clang-cl - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 B2_ADDRESS_MODEL: 64 B2_CXXSTD: 11,14,17 B2_TOOLSET: clang-win diff --git a/test/stl_concept_covering.cpp b/test/stl_concept_covering.cpp index 516d805..51612a2 100644 --- a/test/stl_concept_covering.cpp +++ b/test/stl_concept_covering.cpp @@ -548,9 +548,10 @@ main() unary_predicate_archetype pred(dummy_cons); bi = std::partition(bi, bi, pred); } -#if !defined(BOOST_MSVC) && !defined(BOOST_EMBTC) +#if !defined(BOOST_MSVC) && !defined(BOOST_EMBTC) && !defined(_MSC_VER) { - // fails on MSVC + // fails on MSVC and clang-win; stl headers come from Visual Studio and + // they attempt to reverse the iterator typedef null_archetype<> PredArg; typedef sgi_assignable_archetype > FT; mutable_forward_iterator_archetype fi;