Unidata/netcdf-cxx4 — pull request #5 by jarlela (2013-12-12 09:54:02+00:00)
Title: Nc file copy assign

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.