You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add explicit Rule of Five defaults for classes with user-provided destructors (#5094)
Summary:
Pull Request resolved: #5094
Fix 73 `cppcoreguidelines-special-member-functions` and `clang-diagnostic-deprecated-copy-with-user-provided-dtor` lint warnings across 32 header files by adding explicit `= default` declarations for copy/move constructors and assignment operators to 46 classes that define user-provided destructors.
In C++17+, the implicit generation of copy constructors for classes with user-provided destructors is deprecated. Adding explicit `= default` preserves the existing behavior while satisfying the Rule of Five. Default constructors were also added where needed to maintain existing default-constructibility.
Differential Revision: D100592061
0 commit comments