[libcxx-commits] [libcxx] [libc++][test] Fix MSVC warnings with `static_cast`s (PR #74962)

Stephan T. Lavavej via libcxx-commits libcxx-commits at lists.llvm.org
Sun Dec 10 04:38:21 PST 2023


================
@@ -53,9 +53,9 @@ constexpr void iterate_stride(M m, const std::array<int, M::extents_type::rank()
   constexpr int r = static_cast<int>(M::extents_type::rank()) - 1 - static_cast<int>(sizeof...(Args));
   if constexpr (-1 == r) {
     ASSERT_NOEXCEPT(m(args...));
-    size_t expected_val = [&]<size_t... Pos>(std::index_sequence<Pos...>) {
+    size_t expected_val = static_cast<size_t>([&]<size_t... Pos>(std::index_sequence<Pos...>) {
----------------
StephanTLavavej wrote:

Done, pushed a commit to qualify all occurrences in this file.

https://github.com/llvm/llvm-project/pull/74962


More information about the libcxx-commits mailing list