On Thursday 18 April 2002 10:18 am, Lars Gullik Bjønnes wrote:
> Angus Leeming <[EMAIL PROTECTED]> writes:
> | Do you have any opinions about which way I should go?
>
> No, not really.
>
> - be as const as possible
> - all class functions that are logically const should be const.
>
> That's the rules I use.

well, here I'm going to add

- in a wrapper class leave as non-const all class functions that are
   logically non-const even though you can actually make all methods const.

That way, I won't be able to do nonsense like:
        Wrapper const widget;
        widget::setGeoemtry(x,y,w,h);

Angus

Reply via email to