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

Warnings when compiling on windows: stdext::unchecked_array_iterator, and related factory functions are non-Standard extensions and will be removed in the future #3896

Closed
alexander-riss opened this issue Mar 15, 2024 · 1 comment

Comments

@alexander-riss
Copy link

warning C4996: 'stdext::checked_array_iterator<T *>': warning STL4043: stdext::checked_array_iterator, stdext::unchecked_array_iterator, and related factory functions are non-Standard extensions and will be removed in the future. std::span (since C++20) and gsl::span can be used instead. You can define _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING or _SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS to suppress this warning.

Would probably make sense to add a gsl::span switch for windows while min cpp version is still below cpp20?

@vitaut
Copy link
Contributor

vitaut commented Mar 19, 2024

Looks like a duplicate of #3540.

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

No branches or pull requests

2 participants