[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:38 PST 2023


================
@@ -56,7 +56,7 @@ static_assert(!HasMakeSharedForOverwrite<Foo[]>);
 static_assert(!HasMakeSharedForOverwrite<int[], std::size_t, int>);
 static_assert(!HasMakeSharedForOverwrite<Foo[], std::size_t, int>);
 
-constexpr char pattern = 0xDE;
+constexpr char pattern = static_cast<char>(0xDE);
----------------
mordante wrote:

Interesting that MSVC issues a diagnostic here too.

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


More information about the libcxx-commits mailing list