netcdf-cxx4 icon indicating copy to clipboard operation
netcdf-cxx4 copied to clipboard

Default or delete most constructors/assignment operators

Open ZedThree opened this issue 1 year ago • 0 comments

See following C++ Core Guidelines for rationale:

  • https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c20-if-you-can-avoid-defining-default-operations-do
  • https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c21-if-you-define-or-delete-any-copy-move-or-destructor-function-define-or-delete-them-all

Basically we can rely on the compiler to generate all of these for us. This PR is net -400 lines and does exactly the same thing.

ZedThree avatar Oct 20 '23 16:10 ZedThree