Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.6
-
None
Description
shptr.cpp:6:27: error: conversion from ‘std::nullptr_t’ to non-scalar type ‘QSharedPointer<int>’ requested QSharedPointer<int> p = nullptr;
This is a not-uncommon thing to do with a std::shared_ptr.
I didn't look for other incompatibilities. I just noticed this one when porting one use of std::shared_ptr to QSharedPointer.
Attachments
Issue Links
- is duplicated by
-
QTBUG-52223 please support nullptr for QSharedPointer
-
- Closed
-
For Gerrit Dashboard: QTBUG-52569 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
155784,4 | Add support for initializing QSharedPointer from nullptr | dev | qt/qtbase | Status: MERGED | +2 | 0 |