mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
clang-tidy: Use = delete
This commit is contained in:
committed by
Brad King
parent
d75fec5a88
commit
b05b778a2d
@@ -30,16 +30,6 @@ building on older toolchains some constructs need to be handled with care:
|
||||
|
||||
The ``std::auto_ptr`` template is deprecated in C++11. Use ``std::unique_ptr``.
|
||||
|
||||
* Use ``CM_DISABLE_COPY(Class)`` to mark classes as non-copyable.
|
||||
|
||||
The ``CM_DISABLE_COPY`` macro should be used in the private section of a
|
||||
class to make sure that attempts to copy or assign an instance of the class
|
||||
lead to compiler errors even if the compiler does not support *deleted*
|
||||
functions. As a guideline, all polymorphic classes should be made
|
||||
non-copyable in order to avoid slicing. Classes that are composed of or
|
||||
derived from non-copyable classes must also be made non-copyable explicitly
|
||||
with ``CM_DISABLE_COPY``.
|
||||
|
||||
Source Tree Layout
|
||||
==================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user