On 2019-08-08 10:29, Philippe wrote:
Looks good, except that your proposed qIntrusiveDetached()
has (apparently) the same "uncertainty" that caused shared_ptr::unique()
to be deprecated.
https://en.cppreference.com/w/cpp/memory/shared_ptr/unique

The problem with shared_ptr::unique() is weak_ptr: weak_ptr::lock() can materialize new strong references at any time, cf. wg21.link/P1116 for a possible solution (which, however, isn't implementable in an ABI-compatible fashion on most platforms).

QISP doesn't have an associated weak_ptr.

Thanks,
Marc
_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to