[gtkmm] GCC 3.1 warning suppression patch



It adds some redundancy but removes some warnings.
can it go in?

-- 
   .--= ULLA! =----------------------.   `We are not here to give users what
   \    http://cactus.rulez.org       \   they want'  -- RMS, at GUADEC 2001
    `-----= cactus cactus rulez org =--'
A Microsoft feltalata a program nelkuli hibat!
Index: containers.h
===================================================================
RCS file: /cvs/gnome/gtkmm-root/glib-src/containers.h,v
retrieving revision 1.16
diff -u -u -r1.16 containers.h
--- containers.h	26 Jun 2002 08:12:35 -0000	1.16
+++ containers.h	27 Jun 2002 19:45:21 -0000
@@ -68,6 +68,9 @@
   typedef std::bidirectional_iterator_tag iterator_category;
   typedef size_t size_type;
   typedef ptrdiff_t difference_type;
+  
+  typedef typename List_Iterator_Base<T>::pointer pointer;
+  typedef typename List_Iterator_Base<T>::reference reference;
 
   GList* const* head_;
   GList* node_;
@@ -139,6 +142,9 @@
   typedef size_t size_type;
   typedef ptrdiff_t difference_type;
 
+  typedef typename List_Iterator_Base<T>::pointer pointer;
+  typedef typename List_Iterator_Base<T>::reference reference;
+
   GSList* node_;
   typedef SList_Iterator<T> Self;
 
@@ -189,6 +195,9 @@
   typedef std::bidirectional_iterator_tag iterator_category;
   typedef size_t size_type;
   typedef ptrdiff_t difference_type;
+
+  typedef typename List_Iterator_Base<T_IFace>::pointer pointer;
+  typedef typename List_Iterator_Base<T_IFace>::reference reference;
 
   typedef List_Cpp_Iterator<T_Impl, T_IFace> Self;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]