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; }