http://itman.livejournal.com/ ([identity profile] itman.livejournal.com) wrote in [personal profile] juan_gandhi 2010-02-11 05:03 am (UTC)

А, я понял. Вы не хотите, чтобы в коде везде был getInstance(). Это ИМХО очень правильный подход :-)
Но все равно придется написать:
MyClass SomeVar(...,OutCoolUtils::Logger::getInstance())

Или инициализировать OutCoolUtils::Logger глобально.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting