From 5f4d4d09096009d37bacc1920848d31b4cd4682b Mon Sep 17 00:00:00 2001 From: gabi Date: Wed, 15 Oct 2014 02:24:35 +0300 Subject: [PATCH] small bug fix --- include/c11log/details/log_msg.h | 2 +- include/c11log/logger.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/c11log/details/log_msg.h b/include/c11log/details/log_msg.h index 9be54456..bb0d47b5 100644 --- a/include/c11log/details/log_msg.h +++ b/include/c11log/details/log_msg.h @@ -31,7 +31,7 @@ struct log_msg swap(*this, other); } - friend void swap(log_msg& l, log_msg& r) + void swap(log_msg& l, log_msg& r) { using std::swap; swap(l.logger_name, r.logger_name); diff --git a/include/c11log/logger.h b/include/c11log/logger.h index eb0845d6..69a22b88 100644 --- a/include/c11log/logger.h +++ b/include/c11log/logger.h @@ -101,7 +101,7 @@ inline c11log::logger::logger(const std::string& logger_name, std::initializer_l if (!formatter) //default formatter _formatter = std::make_shared(_default_pattern); - //Seems that vs2013 doesn't support atomic member initialization yet + // no support under vs2013 for member initialization for std::atomic _level = level::INFO; }