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

Recommend deleted methods to be public.
This commit is contained in:
Andrew Pardoe
2017-12-11 11:10:10 -08:00
committed by GitHub

View File

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