#endif
#endif
-// A macro to disallow the evil copy constructor and operator= functions
-// This should be used in the private: declarations for a class
-#define DISALLOW_EVIL_CONSTRUCTORS(TypeName) \
- TypeName(const TypeName&); \
- void operator=(const TypeName&)
-
// Make a bunch of macros for logging. The way to log things is to stream
// things to LOG(<a particular severity level>). E.g.,
//
~LogMessageData();
private:
- DISALLOW_EVIL_CONSTRUCTORS(LogMessageData);
+ LogMessageData(const LogMessageData&);
+ void operator=(const LogMessageData&);
};
LogMessageData* allocated_;
friend class LogDestination;
- DISALLOW_EVIL_CONSTRUCTORS(LogMessage);
+ LogMessage(const LogMessage&);
+ void operator=(const LogMessage&);
};
// This class happens to be thread-hostile because all instances share
~ErrnoLogMessage();
private:
-
- DISALLOW_EVIL_CONSTRUCTORS(ErrnoLogMessage);
+ ErrnoLogMessage(const ErrnoLogMessage&);
+ void operator=(const ErrnoLogMessage&);
};
// terminated with '\0'.
void InstallFailureWriter(void (*writer)(const char* data, int size));
-// Undefine these macros not to taint namespace.
-#undef DISALLOW_EVIL_CONSTRUCTORS
-
@ac_google_end_namespace@
#endif // _LOGGING_H_