From 6c21789aeda9c96e43cf27af2e774b0419969a3f Mon Sep 17 00:00:00 2001 From: JB_12 Date: Wed, 2 Jun 2021 08:20:29 +0100 Subject: [PATCH] Fix C++20 build resulting in deprecated implicit copy assignment operator warning --- include/spdlog/details/log_msg.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/spdlog/details/log_msg.h b/include/spdlog/details/log_msg.h index 834ca4df..b9d4ffc3 100644 --- a/include/spdlog/details/log_msg.h +++ b/include/spdlog/details/log_msg.h @@ -15,6 +15,7 @@ struct SPDLOG_API log_msg log_msg(source_loc loc, string_view_t logger_name, level::level_enum lvl, string_view_t msg); log_msg(string_view_t logger_name, level::level_enum lvl, string_view_t msg); log_msg(const log_msg &other) = default; + log_msg &operator=(const log_msg &other) = default; string_view_t logger_name; level::level_enum level{level::off};