-
Notifications
You must be signed in to change notification settings - Fork 1.6k
<iterator>
: Modernize and deprecate (un)checked_array_iterator
#3818
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
Changes from all commits
9d67171
b4fe05d
144fa32
bf07345
562bfd0
7644d5e
5e7ea65
df87436
7dde1f9
777bf88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1445,7 +1445,19 @@ _EMIT_STL_ERROR(STL1004, "C++98 unexpected() is incompatible with C++23 unexpect | |
#define _CXX23_DEPRECATE_DENORM | ||
#endif // ^^^ warning disabled ^^^ | ||
|
||
// next warning number: STL4043 | ||
#if _HAS_CXX17 && !defined(_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING) \ | ||
&& !defined(_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS) | ||
#define _DEPRECATE_STDEXT_ARR_ITERS \ | ||
[[deprecated( \ | ||
"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_CXX17_DEPRECATION_WARNINGS to suppress this warning.")]] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is debatable whether this should be controlled by the coarse-grained |
||
#else // ^^^ warning enabled / warning disabled vvv | ||
#define _DEPRECATE_STDEXT_ARR_ITERS | ||
#endif // ^^^ warning disabled ^^^ | ||
|
||
// next warning number: STL4044 | ||
|
||
// next error number: STL1006 | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.