From 679acd561c1b2995a5d4ba4d4d1205aa848bee76 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 3 Sep 2025 10:50:05 -0400 Subject: [PATCH] gdbsupport: make reference_to_pointer_iterator's constructor non-variadic For the same reason as the previous patches (making things easier to understand, at the cost of being more explicit), change reference_to_pointer_iterator's constructor to take an already built underlying iterator. There are no uses of this utility in the code base right now, so no callers to update. Change-Id: Ifadb4c3a5ee53a8d0eb6c0d79efcc92271492e8e Approved-By: Tom Tromey --- gdbsupport/reference-to-pointer-iterator.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gdbsupport/reference-to-pointer-iterator.h b/gdbsupport/reference-to-pointer-iterator.h index af58e38bad2..67a8d5473d7 100644 --- a/gdbsupport/reference-to-pointer-iterator.h +++ b/gdbsupport/reference-to-pointer-iterator.h @@ -38,9 +38,8 @@ struct reference_to_pointer_iterator /* Construct a reference_to_pointer_iterator, passing args to the underlying iterator. */ - template - reference_to_pointer_iterator (Args &&...args) - : m_it (std::forward (args)...) + explicit reference_to_pointer_iterator (IteratorType it) + : m_it (std::move (it)) {} /* Create a past-the-end iterator. -- 2.47.3