mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Add note to make deleted methods public
This commit is contained in:
@@ -6089,6 +6089,8 @@ A `unique_ptr` can be moved, but not copied. To achieve that its copy operations
|
||||
auto pi3 {make()}; // OK, move: the result of make() is an rvalue
|
||||
}
|
||||
|
||||
Note that deleted methods should be public.
|
||||
|
||||
##### Enforcement
|
||||
|
||||
The elimination of a default operation is (should be) based on the desired semantics of the class. Consider such classes suspect, but maintain a "positive list" of classes where a human has asserted that the semantics is correct.
|
||||
|
||||
Reference in New Issue
Block a user