Re: [gtkmm] gtkmm 2.4 questions



On Wed, 2004-06-16 at 16:36 +0200, Murray Cumming wrote:
> On Wed, 2004-06-16 at 16:33 +0200, Frank Naumann wrote:
> > Hello!
> > 
> > > You would expect get_size() to be const. Therefore the implementation
> > > should probably be const.
> > 
> > Following your argumentation render_vfunc must be const too (as it just 
> > display something, it don't change the instance).
> 
> It kind of changes whether or not its rendered.

If you mean that it renders _into_ one of the method's arguments, then
yes, it might be a candidate for constness. However, I'm not sure what
it actually does.

> >  Or I'm wrong here (and 
> > if yes, why?).
> 
> You don't understand the const or mutable keywords.
> 
-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com





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