Вот пример:
Код: Выделить всё
template
class Logger
{
class LogEntry
{
public:
LogEntry(Logger& logger, Stream& stream)
: m_stream(stream)
{
}
LogEntry(const LogEntry&) = delete;
LogEntry(LogEntry&&) noexcept = default;
template
LogEntry& operator
Подробнее здесь: [url]https://stackoverflow.com/questions/79273077/specializing-a-template-member-function-in-a-nested-template-class[/url]
Мобильная версия