Fix the deprecation warning of stdext::checked_array_iterator#1769
Fix the deprecation warning of stdext::checked_array_iterator#1769frederick-vs-ja wants to merge 2 commits intomicrosoft:masterfrom
stdext::checked_array_iterator#1769Conversation
|
This should use |
It looks like the rest of the code base is targeting something much older than C++20. I think this is fine as is. |
|
@barcharcraz Can you review this? |
lederernc
left a comment
There was a problem hiding this comment.
I have been testing this internally in a conan recipe applying this patch and it works for us.
|
Is it possible to merge this into main? |
|
I recently had to address this when some of our devs upgraded to MSVC 17.12.x and this solution was no longer a workable solution for us. The solution I ended up deploying with patch files in conan for our team were to modify containerstream.h, producerconsumerstream.h and rawptrstream.h as per this patch file: |
|
If it's helpful I can supply an alternate PR with this patch in it. just let me know. |
| * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | ||
| * | ||
| * This file defines the checked iterator iterator template that originated from MSVC STL's | ||
| * stdext::checked_iterator_iterator, which is now deprecated. |
There was a problem hiding this comment.
stdext::checked_iterator_iterator is being removed now.
|
Perhaps the should be abandoned as @StephanTLavavej said the strategy creating a copy was incorrect. Opened #1836 instead. |
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.(Attempted to fix) #1768.