microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.89k stars 1.63k forks source link

Fix the deprecation warning of `stdext::checked_array_iterator` #1769

Open frederick-vs-ja opened 9 months ago

frederick-vs-ja commented 9 months ago

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 commented 7 months ago

This should use std::span.

lederernc commented 7 months ago

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 commented 6 months ago

@barcharcraz Can you review this?