diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2021-10-04 16:45:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-04 17:32:50 +0000 |
commit | c57a1f545ad0b5c16fd98f24fda9fe920e1bea39 (patch) | |
tree | 11c6f9ab304c2af348b9b780c0635bc236a35e98 /src/mongo/logv2 | |
parent | 14c12774fa544cd9a709807002daf4be3dc807df (diff) | |
download | mongo-c57a1f545ad0b5c16fd98f24fda9fe920e1bea39.tar.gz |
SERVER-54413 ComposedAttr forwarding
Diffstat (limited to 'src/mongo/logv2')
-rw-r--r-- | src/mongo/logv2/log_attr.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mongo/logv2/log_attr.h b/src/mongo/logv2/log_attr.h index 775823ca566..0ec9e73b809 100644 --- a/src/mongo/logv2/log_attr.h +++ b/src/mongo/logv2/log_attr.h @@ -43,10 +43,10 @@ namespace detail { template <typename... Ts> class ComposedAttr { public: - ComposedAttr(Ts&&... args) : _values(std::move(args)...) {} + ComposedAttr(Ts&&... args) : _values(std::forward<Ts>(args)...) {} /** - * Creates a flattend tuple of loggable named attributes + * Creates a flattened tuple of loggable named attributes */ auto attributes() const; @@ -54,12 +54,6 @@ private: std::tuple<Ts...> _values; }; -template <typename> -struct IsComposedAttr : std::false_type {}; - -template <typename... Ts> -struct IsComposedAttr<ComposedAttr<Ts...>> : std::true_type {}; - template <typename T> struct NamedArg { const char* name; |