I am implementing a class using singleton for logging purposes.
Log *Log::getInstance(){
if(!Log::log) Log::log = new Log::Log();
return Log::log;
}
Here, Log::log is a pointer to an object of Log class. This snnipet of code generates the error "expected type-specifier" on new Log::Log(), but if I ommit the scope resolution operator, it works fine. Why?