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