qt5base-lts/tests/auto/corelib/tools
Milian Wolff 014d7ac654 Q{Shared,Weak}Pointer: Reduce overload sets in implicit conversions
Only allow implicit conversions when the types involved are compatible.
That means, only allow construction and copy assignment when the type
X* is convertible to type T*. This is done using SFINAE and the
std::is_convertible type trait, which makes the previous
QSHAREDPOINTER_VERIFY_AUTO_CAST obsolete.

This patch fixes compilation when a function is overloaded with
Q{Shared,Weak}Pointer of different, incompatible types. Previously, this
resulted in a compilation error due to an ambiguous overload.

Change-Id: I069d22f3582e69842f14284d4f27827326597ca2
Fixes: QTBUG-75222
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-10-11 16:53:23 +02:00
..
collections Revert "BLACKLIST insert_remove_loop for msvc-2019" 2019-09-24 10:26:00 +02:00
containerapisymmetry
qalgorithms Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qarraydata
qarraydata_strictiterators
qbitarray QBitArray: fix fromBits() and actually test it 2019-08-08 20:27:04 -07:00
qbytearray QByteArray: toInt() and toDouble() ignore surrounding whitespaces 2018-07-07 19:58:18 +00:00
qbytearraylist QByteArrayList: add indexOf(const char*) overload 2018-11-06 09:49:10 +00:00
qbytearraymatcher
qbytedatabuffer
qcache
qchar Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qcollator Handle QCollator with locale C by delegating to QString 2018-12-11 19:05:07 +00:00
qcommandlineparser Merge remote-tracking branch 'origin/5.12' into 5.13 2019-02-19 01:00:08 +01:00
qcontiguouscache
qcryptographichash QCryptographicHash: Add a static method to retrieve hash length 2018-04-10 12:17:43 +00:00
qdate Raise the upper bound on years to 9999 2017-11-30 20:19:13 +00:00
qdatetime Skip tst_QDateTime::systemTimeZoneChange for UWP configurations 2019-09-24 06:18:07 +02:00
qeasingcurve MinGW: Exclude failing value of tst_QEasingCurve::setCustomType() 2018-08-21 07:12:19 +00:00
qexplicitlyshareddatapointer Add nullptr comparison to Q{Explicitly,}SharedDataPointer 2018-03-18 17:28:26 +00:00
qfreelist
qhash
qhash_strictiterators
qhashfunctions
qlatin1string
qline Tests: Fix clang warnings about unused variables and captures 2018-05-02 09:36:00 +00:00
qlinkedlist
qlist
qlist_strictiterators
qlocale Merge remote-tracking branch 'origin/5.12' into 5.13 2019-05-09 13:06:11 +00:00
qmacautoreleasepool Add missing dependencies for tst_qmacautoreleasepool 2018-08-29 02:47:45 +00:00
qmakearray corelib/tools: add qMakeArray() API 2018-07-25 06:57:44 +00:00
qmap
qmap_strictiterators
qmargins
qmessageauthenticationcode
qoffsetstringarray corelib/tools: Fix auto detection of QOffsetStringArray::m_offset type 2018-08-28 14:42:46 +00:00
qpair QTypeInfo: use C++11 type traits to deduce if a type is static or complex 2018-12-10 08:13:58 +00:00
qpoint
qpointf Fix regression in QPointF::operator== 2018-07-09 15:38:31 +00:00
qqueue
qrect
qregexp QRegExp: remove an out of bounds access into QString 2019-05-27 17:33:30 +00:00
qregularexpression QRegularExpression: anchor wildcard pattern 2018-12-15 13:24:16 +00:00
qringbuffer QRingBuffer: avoid reallocations of the data 2017-12-30 10:15:10 +00:00
qscopedpointer
qscopedvaluerollback
qscopeguard Introduce QScopeGuard 2018-07-21 17:47:35 +00:00
qset
qsharedpointer Q{Shared,Weak}Pointer: Reduce overload sets in implicit conversions 2019-10-11 16:53:23 +02:00
qsize
qsizef
qstl
qstring Use RAII to handle setting of default locale in tst_QString 2019-01-22 16:42:29 +00:00
qstring_no_cast_from_bytearray
qstringapisymmetry Fix new[] delete mismatch in test 2019-05-15 11:17:57 +02:00
qstringbuilder QStringBuilder: add support for QStringView 2018-01-08 09:41:43 +00:00
qstringiterator
qstringlist Add QStringList::indexOf/lastIndexOf for QStringView and QLatin1String 2019-01-22 15:07:29 +00:00
qstringmatcher
qstringref Remove references to obsolete platforms 2017-11-05 06:33:53 +00:00
qstringview QStringView: Add compare() member function 2018-07-13 13:32:34 +00:00
qtextboundaryfinder QTextBoundaryFinder: don't break after uppercase followed by comma 2019-05-23 01:24:18 +00:00
qtime Raise the upper bound on years to 9999 2017-11-30 20:19:13 +00:00
qtimeline Extend blacklisting of qtimeline::frameRate to macOS 10.13 2018-09-24 21:13:00 +00:00
qtimezone Fix various uncommon cases in QTzTimeZonePrivate backend 2019-04-05 20:31:26 +00:00
qvarlengtharray fixup oversight in rvalue overloads of operator+=() and operator<<() 2018-03-26 14:29:47 +00:00
qvector Fix regression causing QVector::fill w/ same size to not detach 2019-07-16 18:09:51 -07:00
qvector_strictiterators
qversionnumber Tests: Raise minimum supported MSVC version to 2015 2018-01-04 20:23:25 +00:00
tools.pro corelib/tools: Add QOffsetStringArray API 2018-08-27 10:33:46 +00:00