Updated Serbian and Russian translations for various sub-directories
[binutils-gdb.git] / gdbsupport / safe-iterator.h
index 5cfc5b6ee692ec4776ea8c6dfc42a56ce85b7e41..53868d3b3eecfc1987cdaf871c3508289610b29a 100644 (file)
@@ -48,11 +48,11 @@ public:
   typedef typename Iterator::iterator_category iterator_category;
   typedef typename Iterator::difference_type difference_type;
 
-  /* Construct using the given argument; the end iterator is default
-     constructed.  */
-  template<typename Arg>
-  explicit basic_safe_iterator (Arg &&arg)
-    : m_it (std::forward<Arg> (arg)),
+  /* Construct the begin iterator using the given arguments; the end iterator is
+     default constructed.  */
+  template<typename... Args>
+  explicit basic_safe_iterator (Args &&...args)
+    : m_it (std::forward<Args> (args)...),
       m_next (m_it)
   {
     if (m_it != m_end)