... and destructor.
If I have a class like this:
I don't want to create an instance of it to make use of it. When do the constructor and destructor get called? Does it involve a temporary?Code:class ErrorLog
{
public:
ErrorLog();
~ErrorLog();
static bool OpenLogs( const char* szFileName );
static void Log( const char* szMessage );
static void CloseLogs();
private:
static std::ofstream m_LogFile;
};