diff options
author | Brad King <brad.king@kitware.com> | 2019-01-30 19:00:47 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-01-30 19:00:58 (GMT) |
commit | eb2c23868fe712a0c79b3afe6618e20507c0f9f5 (patch) | |
tree | 8414fc263dd01dbcee636d531638291fd7a17c34 /Help | |
parent | 748d024551d8f447046363ad617fc72bdd977fd2 (diff) | |
parent | b05b778a2dfbcb6978d652dfa27bd52cc649f736 (diff) | |
download | CMake-eb2c23868fe712a0c79b3afe6618e20507c0f9f5.zip CMake-eb2c23868fe712a0c79b3afe6618e20507c0f9f5.tar.gz CMake-eb2c23868fe712a0c79b3afe6618e20507c0f9f5.tar.bz2 |
Merge topic 'tidy-use-equals-delete'
b05b778a2d clang-tidy: Use `= delete`
Acked-by: Kitware Robot <kwrobot@kitware.com>
Rejected-by: vvs31415 <vstakhovsky@fastmail.com>
Merge-request: !2848
Diffstat (limited to 'Help')
-rw-r--r-- | Help/dev/source.rst | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Help/dev/source.rst b/Help/dev/source.rst index 6697d38..47baff4 100644 --- a/Help/dev/source.rst +++ b/Help/dev/source.rst @@ -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 ================== |