summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qmemory_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Add private qt_make_unique as a drop-in for C++14 std::make_uniqueMarc Mutz2019-05-211-0/+71
The original is much more subtle, so don't try to be a 100% replacement. Most users will be able to use std::make_unique these days. This is just a minimal implementation to enable using the functionality in the implementation of Qt libraries. In particular, it does not attempt to deal with arrays. It is therefore not proposed as public API. It is placed in a new private header, since the only header in QtCore that already includes <memory> is sharedpointer_impl.h, and that did not seem to be a good place to add it. It is probably too much of a compilation-time drain to add <memory> to qglobal.h... Change-Id: Ie206ef7ae9beb36c63aef4ec46dbde6c73e0d9f5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>