Murray Cumming wrote: > On Thu, 2007-09-13 at 11:15 -0400, José Alburquerque wrote: > >> As far as gtkmm and inheritance, I found that if I use something like >> TreeModelColumn<MyBaseClass> in a TreeModelColumnRecord, derived members >> of MyBaseClass only use the virtual methods of the base class (not the >> derived class!), but if I use something like >> TreeModelColumn<MyBaseClass*>, dereferencing the pointer to the derived >> class later, does use the virtual (overridden) method of the derived >> class. Thanks again everyone for your help. >> > > This is just like putting a Derived instance in a std::list<Base>. The > Base part will be copied into a new instance in the list, but that > instance won't be a Derived. This is how copy-by-value works. > > I see, this is just standard C++. I'm slightly new to C++ (coming from C and then Java), but I *am* learning as I go along. :-) _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
- Re: Two warnings when creating a TreeStore José Alburquerque
- Re: Two warnings when creating a TreeStore José Alburquerque
- Re: Two warnings when creating a TreeStore Murray Cumming
- Re: Two warnings when creating a TreeStore Milosz Derezynski
- Re: Two warnings when creating a TreeStore José Alburquerque
- Re: Two warnings when creating a TreeStore José Alburquerque
- Re: Two warnings when creating a TreeStore José Alburquerque
- Re: Two warnings when creating a TreeStore Murray Cumming
- Re: Two warnings when creating a TreeStore José Alburquerque
- Re: Two warnings when creating a TreeStore Murray Cumming
- Re: Two warnings when creating a TreeStore José Alburquerque
- Re: Two warnings when creating a TreeStore Murray Cumming
- Re: Two warnings when creating a TreeStore José Alburquerque
- Re: Two warnings when creating a TreeStore José Alburquerque
- Re: Two warnings when creating a TreeStore Andrew E. Makeev
- Re: Two warnings when creating a TreeStore Paul Davis
- Re: Two warnings when creating a TreeStore José Alburquerque
- Re: Two warnings when creating a TreeStore Andrew E. Makeev
- Re: Two warnings when creating a TreeStore José Alburquerque
