mirror of https://github.com/microsoft/vcpkg.git
14 lines
677 B
Diff
14 lines
677 B
Diff
diff --git a/ThirdParty/diy2/vtkdiy2/include/vtkdiy2/fmt/format.h b/ThirdParty/diy2/vtkdiy2/include/vtkdiy2/fmt/format.h
|
|
index dcf4a399..f1dca564 100644
|
|
--- a/ThirdParty/diy2/vtkdiy2/include/vtkdiy2/fmt/format.h
|
|
+++ b/ThirdParty/diy2/vtkdiy2/include/vtkdiy2/fmt/format.h
|
|
@@ -265,7 +265,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 <typename T> using checked_ptr = stdext::checked_array_iterator<T*>;
|
|
template <typename T> checked_ptr<T> make_checked(T* p, std::size_t size) {
|