Unidata / netcdf-cxx4

Official GitHub repository for netCDF-C++ libraries and utilities.
Other
124 stars 49 forks source link

Nc file copy assign #5

Closed jarlela closed 10 years ago

jarlela commented 10 years ago

The NcFile destructor will close the file and release all resources. If any NcFile object is copied and either copy runs out of scope the remaining object will be left in an invalid state with no underlying netcdf-c resources, but isNull() will still return false.

The suggested fix is to simply not allow any NcFile object to be copy constructed or assigned.