Angus Leeming <[EMAIL PROTECTED]> writes:
| I'm clearly confused when it comes to "const" and member pointers.
>
| See the little code snippet below. If I compile it, I get the error:
>
| cxx: Error: trial.C, line 23: (that is, in the const_method)
| the object has type qualifiers that are not compatible with the member
| function
| func(ob());
I get this message:
testsome.C: In member function `void Wrapper::const_method() const':
testsome.C:23: passing `const Wrapper' as `this' argument of `FL_OBJECT*
Wrapper::ob()' discards qualifiers
Looks perfectly sane too me.
all methods that const_method calls must be const.
if I make ob() const everything just compiles.
--
Lgb