Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.15.0 Beta1
-
None
-
Visual Studio 2019 16.4.5, Windows 10
Description
When using range loops with a QSet a warning pops up complaining about deprecated operator --.
Example:
QSet<int> test; for(const auto &t : test) { }
C:\Qt\5.15.0\msvc2017_64\include\QtCore/qset.h(177): warning C4996: 'QHash<T,QHashDummyValue>::const_iterator::operator --': was declared deprecated
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\xutility(1591): note: see reference to function template instantiation 'QSet<T>::const_iterator &QSet<T>::const_iterator::operator --(void)'
Attachments
Issue Links
- duplicates
-
QTBUG-82397 [5.15.0 alpha] deprecated iterator operator used when QSet used as a signal/slot parameter
- Closed