How do I avoid class destructor definition if class constructor is overloaded?
I am using a default constructor and a constructor with two arguments.
When I create an object of the class with no arguments, using the default constructor, I want to avoid the class destructor because it causes a "Program received signal SIGSEGV, Segmentation fault." message when I debug (even though it compiles fine) because in the destructor I call a function which returns the value returned by the ifstream object filestreamInObject->is_open() function, and "filestreamInObject" is not created in the default constructor.