diff --git a/include/fmt/core.h b/include/fmt/core.h index 359916ce..56f1079d 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1288,10 +1288,10 @@ class dynamic_arg_list { public: template const T& push(const Arg& arg) { - auto node = std::unique_ptr>(new typed_node(arg)); - auto& value = node->value; - node->next = std::move(head_); - head_ = std::move(node); + auto new_node = std::unique_ptr>(new typed_node(arg)); + auto& value = new_node->value; + new_node->next = std::move(head_); + head_ = std::move(new_node); return value; } };