Files
cppdraft_translate/cppdraft/depr/impldec.md
2025-10-25 03:02:53 +03:00

1020 B

[depr.impldec]

Annex D (normative) Compatibility features [depr]

D.6 Implicit declaration of copy functions [depr.impldec]

1

#

The implicit definition of a copy constructor as defaulted is deprecated if the class has a user-declared copy assignment operator or a user-declared destructor.

The implicit definition of a copy assignment operator as defaulted is deprecated if the class has a user-declared copy constructor or a user-declared destructor.

It is possible that future versions of C++ will specify that these implicit definitions are deleted ([dcl.fct.def.delete]).