Re: [gtkmm] g++ 3.4



Murray Cumming wrote:
On Tue, 2004-04-20 at 22:03, Philippe Leroux wrote:
  
In file included from ../../gtk/gtkmm/treeselection.h:31,
                 from ../../gtk/gtkmm/treeview.h:32,
                 from ../../gtk/gtkmm/fileselection.h:35,
                 from fileselection.cc:3:
../../gtk/gtkmm/treepath.h: In member function `void
Gtk::TreePath::append(In, In)':
../../gtk/gtkmm/treepath.h:297: error: insufficient contextual
information to determine type


is gtkmm supose to compile with gcc 3.4 ?
    

Yes, but gcc 3.4.0 was only just released. We have been testing it with
cvs versions. A patch would be welcome.
  

I'm guessing this simple patch does the trick (attaching complete output from diff)

on line 297 of treepath.h:

-    this->push_back(*begin);
+    this->push_back(*begin());

-- 
Tor Arvid Lund               ,''`.
http://totto.homelinux.net  : :' :
GnuPG key ID: 0xF335ED1E    `. `'
find it at pgp.mit.edu        `-

--- treepath.h	2004-04-21 15:52:02.000000000 +0200
+++ treepath.h.fixed	2004-04-21 15:52:31.000000000 +0200
@@ -294,7 +294,7 @@
 {
   // push_back() can't throw -- if it could, this code wouldn't be strongly exception-safe.
   for(; pbegin != pend; ++pbegin)
-    this->push_back(*begin);
+    this->push_back(*begin());
 }
 
 template <class In> inline

Attachment: signature.asc
Description: OpenPGP digital signature



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