That allows the code to run in C++17 mode - at the expense of significantly worse compile time error messages, potentially worse compilation speed and harder to read code. Adjust the test type to actually model detail::is_equality_comparable_with (which requires all four relational operators even in C++17). As a drive-by, fix the return value of remove() from auto to bool. Done-with: Marc Mutz <marc.mutz@qt.io> Fixes: QTBUG-128470 Change-Id: I68df26db579c60812a18e09b76dd5712e73ccaa2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 7fe3cee36352c74cbaaff52e863bd0da1170affa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> |
||
|---|---|---|
| .. | ||
| collections | ||
| containerapisymmetry | ||
| qalgorithms | ||
| qarraydata | ||
| qatomicscopedvaluerollback | ||
| qbitarray | ||
| qcache | ||
| qcommandlineparser | ||
| qcontiguouscache | ||
| qcryptographichash | ||
| qduplicatetracker | ||
| qeasingcurve | ||
| qexplicitlyshareddatapointer | ||
| qexplicitlyshareddatapointerv2 | ||
| qflatmap | ||
| qfreelist | ||
| qhash | ||
| qhashfunctions | ||
| qhashseed | ||
| qline | ||
| qlist | ||
| qmacautoreleasepool | ||
| qmakearray | ||
| qmap | ||
| qmargins | ||
| qmessageauthenticationcode | ||
| qoffsetstringarray | ||
| qpair | ||
| qpoint | ||
| qpointf | ||
| qqueue | ||
| qrect | ||
| qringbuffer | ||
| qscopedpointer | ||
| qscopedvaluerollback | ||
| qscopeguard | ||
| qset | ||
| qsharedpointer | ||
| qsize | ||
| qsizef | ||
| qspan | ||
| qstl | ||
| qtaggedpointer | ||
| qtimeline | ||
| qtyperevision | ||
| quniquehandle | ||
| qvarlengtharray | ||
| qversionnumber | ||
| CMakeLists.txt | ||