Function operator=

Synopsis

#include <src/easylogging++.h>

Logger & operator=(const Logger &logger)

Description

No description yet.

Source

Lines 633-645 in src/easylogging++.cc. Line 2222 in src/easylogging++.h.

Logger& Logger::operator=(const Logger& logger) {
  if (&logger != this) {
    base::utils::safeDelete(m_typedConfigurations);
    m_id = logger.m_id;
    m_typedConfigurations = logger.m_typedConfigurations;
    m_parentApplicationName = logger.m_parentApplicationName;
    m_isConfigured = logger.m_isConfigured;
    m_configurations = logger.m_configurations;
    m_unflushedCount = logger.m_unflushedCount;
    m_logStreamsReference = logger.m_logStreamsReference;
  }
  return *this;
}





Add Discussion

Log in to comment