Re: [gtkmm] gtkmm 2.4 questions



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.

>  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]