This commit is contained in:
gabime 2015-03-21 13:55:00 +02:00
parent a24ff54760
commit 1150247efa
4 changed files with 563 additions and 286 deletions

View File

@ -112,7 +112,8 @@ int main(int, char*[])
// Example of user defined class with operator<<
class some_class {};
std::ostream& operator<<(std::ostream& os, const some_class&) {
std::ostream& operator<<(std::ostream& os, const some_class&)
{
return os << "some_class";
}

View File

@ -64,11 +64,11 @@ class async_log_helper
async_msg() = default;
~async_msg() = default;
async_msg(async_msg&& other) SPDLOG_NOEXCEPT:
logger_name(std::move(other.logger_name)),
level(std::move(other.level)),
time(std::move(other.time)),
txt(std::move(other.txt))
async_msg(async_msg&& other) SPDLOG_NOEXCEPT:
logger_name(std::move(other.logger_name)),
level(std::move(other.level)),
time(std::move(other.time)),
txt(std::move(other.txt))
{}
async_msg& operator=(async_msg&& other) SPDLOG_NOEXCEPT

File diff suppressed because it is too large Load Diff

View File

@ -478,7 +478,7 @@ inline void spdlog::pattern_formatter::handle_flag(char flag)
{
switch (flag)
{
// logger name
// logger name
case 'n':
_formatters.push_back(std::unique_ptr<details::flag_formatter>(new details::name_formatter()));
break;