From 12e207b900d21a1dd371259a36177fee304e050e Mon Sep 17 00:00:00 2001 From: Bailey Chittle Date: Fri, 10 Mar 2023 11:58:57 -0500 Subject: [PATCH] forgot an overload for pure std strings --- include/spdlog/details/log_attr.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/spdlog/details/log_attr.h b/include/spdlog/details/log_attr.h index 1bd831a2..6ef37952 100644 --- a/include/spdlog/details/log_attr.h +++ b/include/spdlog/details/log_attr.h @@ -22,6 +22,9 @@ struct Key Key(std::string&& k) { scramble(_key, k); } + Key(std::string const& k) { + scramble(_key, k); + } Key(const char* k) { scramble(_key, k); } @@ -38,6 +41,9 @@ struct Value Value(std::string&& v) { scramble(_value, v); } + Value(std::string const& v) { + scramble(_value, v); + } Value(const char* v) { scramble(_value, v); }