Should you explicitly delete unused/unsupported special functions or declare them as private?
Show answer and explanation
A public = delete is the modern choice because it documents the forbidden operation and lets overload resolution diagnose it directly. Private declaration without a definition is a legacy technique and can defer or obscure the error.
A public = delete is the modern choice because it documents the forbidden operation and lets overload resolution diagnose it directly. Private declaration without a definition is a legacy technique and can defer or obscure the error.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.