mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-19 04:40:39 -05:00
Retire std::auto_ptr and its macro CM_AUTO_PTR
Signed-off-by: Matthias Maennich <matthias@maennich.net>
This commit is contained in:
@@ -26,11 +26,9 @@ C++ Subset Permitted
|
||||
CMake requires compiling as C++11 or above. However, in order to support
|
||||
building on older toolchains some constructs need to be handled with care:
|
||||
|
||||
* Do not use ``CM_AUTO_PTR`` or ``std::auto_ptr``.
|
||||
* Do not use ``std::auto_ptr``.
|
||||
|
||||
The ``std::auto_ptr`` template is deprecated in C++11. The ``CM_AUTO_PTR``
|
||||
macro remains leftover from C++98 support until its uses can be ported to
|
||||
``std::unique_ptr``. Do not add new uses of the macro.
|
||||
The ``std::auto_ptr`` template is deprecated in C++11. Use ``std::unique_ptr``.
|
||||
|
||||
* Use ``CM_EQ_DELETE;`` instead of ``= delete;``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user