Skip to content

Fix cpprest checked iterator build error#6301

Open
Trenly wants to merge 2 commits into
microsoft:masterfrom
Trenly:CppRestSDKFix
Open

Fix cpprest checked iterator build error#6301
Trenly wants to merge 2 commits into
microsoft:masterfrom
Trenly:CppRestSDKFix

Conversation

@Trenly

@Trenly Trenly commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

📖 Description

Adds a patch for cpprestsdk to allow it to build in VS2026 18.5.3

🔗 References

🔍 Validation

Built locally

✅ Checklist

📋 Issue Type

  • Bug fix
  • Feature
  • Task
Microsoft Reviewers: Open in CodeFlow

@Trenly Trenly requested a review from a team as a code owner June 19, 2026 19:16
@florelis

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@florelis

Copy link
Copy Markdown
Member

Could you add a note about this new patch to the overlay README, please? And also a comment somewhere about what the patch is about.

@florelis

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Comment on lines 563 to +565
New-PortOverlay cpprestsdk -Version 2.10.18 -PortVersion 4
# stdext::checked_array_iterator was removed in VS2026 (MSVC 19.43); replace with plain pointers.
Add-LocalPatch cpprestsdk 'fix-msvc-checked-array-iterator.patch'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there is already a fix in the official port: microsoft/vcpkg#51750
Instead of applying our own patch, we could just update the version we use.

Suggested change
New-PortOverlay cpprestsdk -Version 2.10.18 -PortVersion 4
# stdext::checked_array_iterator was removed in VS2026 (MSVC 19.43); replace with plain pointers.
Add-LocalPatch cpprestsdk 'fix-msvc-checked-array-iterator.patch'
New-PortOverlay cpprestsdk -Version 2.10.19 -PortVersion 5

While looking this up, I learned that cpprestsdk is now delisted from vcpkg (microsoft/vcpkg#52130) because the repo was archived. So maybe we'll have to figure out something else to use at some point.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the Needs-Author-Feedback Issue needs attention from issue or PR author label Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs-Author-Feedback Issue needs attention from issue or PR author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compilation for cpprestsdk fails on Visual Studio 18.5.3

3 participants