I have this interface. If I derive, do I need to specify format attribute again? And, if a class Deriv implements this interface, can I use Deriv::LT_DEBUG?
class Logger
{
public:
enum LogType
{
LT_DEBUG = 0,
LT_WARNING,
LT_ERROR,
LT_STAT,
LT_TEXT
};
__attribute__((format(printf, 6, 7)))
virtual const char* EHLog(LogType,
bool,
const char*,
int,
const char*,
...) = 0;
virtual ~Logger(){}
};