aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/next-iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common/next-iterator.h')
-rw-r--r--gdb/common/next-iterator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/common/next-iterator.h b/gdb/common/next-iterator.h
index 588ebfd..b61b253 100644
--- a/gdb/common/next-iterator.h
+++ b/gdb/common/next-iterator.h
@@ -72,7 +72,7 @@ private:
/* A range adapter that allows iterating over a linked list. */
-template<typename T>
+template<typename T, typename Iterator = next_iterator<T>>
class next_adapter
{
public:
@@ -82,7 +82,7 @@ public:
{
}
- using iterator = next_iterator<T>;
+ using iterator = Iterator;
iterator begin () const
{