Merge pull request #1096 from brenoguim/hotfix/recommend-public-deleted-methods

Recommend deleted methods to be public.
pull/1092/merge
Andrew Pardoe 8 years ago committed by GitHub
commit fbc48fafb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.

Loading…
Cancel
Save