Two alternatives to Cheers and hth. - Alf's answer:
You can give the registrar a name if you need it more than once in the field:
Logger& logger = Logger::GetInstance();
logger.Print("Hello, world");
Or you can also set logging methods:
static void Logger::Print(const T &t) {
Logger::GetInstance().Print(t);
}
and then name them statically:
Logger::Print("Hello world!");
, , - , . , , , . , GetInstance, .