diff --git a/third_party/fmt/include/fmt/format.h b/third_party/fmt/include/fmt/format.h index 4c51630..bc2496c 100644 --- a/third_party/fmt/include/fmt/format.h +++ b/third_party/fmt/include/fmt/format.h @@ -321,7 +321,7 @@ inline typename Container::value_type* get_data(Container& c) { return c.data(); } -#ifdef _SECURE_SCL +#if defined(_SECURE_SCL) && defined(_MSC_VER) && _MSC_VER < 1951 // Make a checked iterator to avoid MSVC warnings. template using checked_ptr = stdext::checked_array_iterator; template checked_ptr make_checked(T* p, std::size_t size) {