Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the deprecation warning of stdext::checked_array_iterator #1769

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

frederick-vs-ja
Copy link

@frederick-vs-ja frederick-vs-ja commented Sep 20, 2023

By adding a non-deprecated copy of checked_array_iterator.

The implementation heavily relies on the implementation details of MSVC STL, but IMO this is OK since we only use it when defined(_ITERATOR_DEBUG_LEVEL) && _ITERATOR_DEBUG_LEVEL != 0.

Fixes #1768.

@robert-andrzejuk
Copy link
Contributor

robert-andrzejuk commented Nov 24, 2023

This should use std::span.

@lederernc
Copy link

This should use std::span.

It looks like the rest of the code base is targeting something much older than C++20.

I think this is fine as is.

@kobykahane
Copy link

@barcharcraz Can you review this?

Copy link

@lederernc lederernc left a comment

Choose a reason for hiding this comment

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

I have been testing this internally in a conan recipe applying this patch and it works for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stdext::checked_array_iterator compilation error with VS 2022 17.8 Preview 2
4 participants