Код: Выделить всё
class Logger {
public:
// Write log message to the terminal
void Write(const string& msg) const;
...
};
Лично я не вижу ничего плохого в том, чтобы определить метод Write как не const.>
Подробнее здесь: https://stackoverflow.com/questions/798 ... d-as-const
Мобильная версия