[libcxx-commits] [libcxx] [libc++][test] Fix MSVC warnings with `static_cast`s (PR #74962)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Dec 10 04:09:39 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...>) {
----------------
mordante wrote:
While you're at it can you add `std::` to `size_t` in this area too?
https://github.com/llvm/llvm-project/pull/74962
More information about the libcxx-commits
mailing list