From 8debdfa5c36ee77580471702e2c3f8068db406fe Mon Sep 17 00:00:00 2001 From: Dutchman101 Date: Sat, 16 May 2026 18:19:05 +0800 Subject: [PATCH] Fix build errors due to deprecations in MSVC 14.51 (Build Tools 18.6.11806.211), which finally dropped the non-standard stdext namespace from the C++ standard library headers. Build failure was a direct result of the toolchain update: ccc5d7d --- vendor/cryptopp/integer.cpp | 2 +- vendor/cryptopp/zdeflate.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/cryptopp/integer.cpp b/vendor/cryptopp/integer.cpp index ff5f80c3b73..21a00bc5dc6 100644 --- a/vendor/cryptopp/integer.cpp +++ b/vendor/cryptopp/integer.cpp @@ -3059,7 +3059,7 @@ Integer::Integer(const byte *encodedInteger, size_t byteCount, Signedness s, Byt else { SecByteBlock block(byteCount); -#if (CRYPTOPP_MSC_VERSION >= 1500) +#if (CRYPTOPP_MSC_VERSION >= 1500) && defined(_STDEXT_BEGIN) std::reverse_copy(encodedInteger, encodedInteger+byteCount, stdext::make_checked_array_iterator(block.begin(), block.size())); #else diff --git a/vendor/cryptopp/zdeflate.cpp b/vendor/cryptopp/zdeflate.cpp index 6b2b6cbd549..7a4c3a91d65 100644 --- a/vendor/cryptopp/zdeflate.cpp +++ b/vendor/cryptopp/zdeflate.cpp @@ -418,7 +418,7 @@ unsigned int Deflator::LongestMatch(unsigned int &bestMatch) const #else std::mismatch #endif -#if CRYPTOPP_MSC_VERSION >= 1600 +#if defined(_STDEXT_BEGIN) && CRYPTOPP_MSC_VERSION >= 1600 (stdext::make_unchecked_array_iterator(scan)+3, stdext::make_unchecked_array_iterator(scanEnd), stdext::make_unchecked_array_iterator(match)+3).first - stdext::make_unchecked_array_iterator(scan)); #else (scan+3, scanEnd, match+3).first - scan);