Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
5.6.0
-
None
-
Qt 5.6.0 for Windows 32-bit (MinGW 4.9.2, 1.0 GB)
-
8026dc6f361b31e36344a3147aac308620287518
Description
shared_ptr<QObject> test()
{ return nullptr;//good }QSharedPointer<QObject> test()
{ return nullptr;//error }when i use c++'s shared_ptr as return value, i can return nullptr directly, but when i use QSharedPointer as return value, i can't reeturn nullptr directly,
Attachments
Issue Links
- duplicates
-
QTBUG-52569 Can't assign a nullptr to a QSharedPointer<T>
-
- Closed
-