[vtk] Avoid stdext::checked_array_iterator.#51794
Closed
Oleg2 wants to merge 1 commit into
Closed
Conversation
Author
|
Withdrawing — switching to a local-only patch in my private vcpkg checkout. The patch (ports/vtk/diy2-fmt-remove-stdext-checked-array-iterator.patch) and its construction notes remain available in the commit if anyone wants to revive it as their own PR. |
Member
|
Is there something wrong with it? (Why withdraw it? Would rather give you credit for the fix if it actually fixes) To be clear I have not reviewed, I just saw linked to my other PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #51766.
What this fixes
VTK's bundled (pre-7.0) copy of fmtlib at
ThirdParty/diy2/vtkdiy2/include/vtkdiy2/fmt/format.hreferencesstdext::checked_array_iteratorunder#ifdef _SECURE_SCL. This extension has been removed from the MSVC standard library in MSVC 14.51 (VS 2026 Preview), so the build fails with:(full failure log in #51766)
Resolution
Drop the
_SECURE_SCLbranch and keep only the raw-pointer fallback. The patchedmake_checked/checked_ptraliases become unconditional pass-throughs. This is the same approach already accepted in vcpkg for the same removal across five other ports:Files
ports/vtk/diy2-fmt-remove-stdext-checked-array-iterator.patch— the source patchports/vtk/portfile.cmake— register the patchports/vtk/vcpkg.json— port-version 15 → 16versions/v-/vtk.json,versions/baseline.json— version DB bump (viavcpkg x-add-version vtk)Local verification
Built
vtk[core]:x64-windowsagainst this overlay port using MSVC 14.51.36231 (VS 2026 Preview, generatorVisual Studio 18 2026). The failingvtkDIYDataExchanger.cxxtranslation unit now compiles cleanly.Manifest
./vcpkg x-add-version --alland committing the result.