diff --git a/include/fmt/core.h b/include/fmt/core.h index cab3dfe0b772..9df1020df143 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1253,10 +1253,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 node_ = std::unique_ptr>(new typed_node(arg)); + auto& value = node_->value; + node_->next = std::move(head_); + head_ = std::move(node_); return value; } }; diff --git a/include/fmt/format.h b/include/fmt/format.h index 3b1ebe59b252..ca45906dd0b3 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3248,9 +3248,9 @@ template <> struct formatter { specs_.precision, specs_.precision_ref, ctx); using range_type = internal::output_range; - internal::basic_writer writer(range_type(ctx.out())); - writer.write_bytes(b.data_, specs_); - return writer.out(); + internal::basic_writer writer_(range_type(ctx.out())); + writer_.write_bytes(b.data_, specs_); + return writer_.out(); } private: