Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.15.16
Description
If compare two QStringList objects with "==" operator, Visual Studio 2022 17.8 complains about the deprecation of stdext::make_checked_array_iterator
The extended warning message is:
warning C4996: 'stdext::checked_array_iterator<const 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.
This tiny code can reproduce it
QStringList list; QStringList two; if(list==two) { qDebug()<<"Hello"; }
Attachments
Issue Links
- duplicates
-
QTBUG-118993 MSVC warns as error on stdext::checked_array_iterator in QtCore/qvector.h
- Closed