On Mon, 20 Nov 2000, Martin Sevior wrote:

 Hi Martin!

[...] 
> I tried putting locks on the PieceTable operations but the const
> definition of some of the methods defeated me.
> 
> Somone with a clue:
> 
> If a function is defined:
>  PD_Document::getAppProps(*) const
> {
> .
> .
> .
> .
> }
> 
> How can I call a function that changes a member variable within
> getAppProps?

 It seems you've solved the problem, but:
 The hackish way is

        PD_Document* that = (PD_Document*)this;
        that->some_nonconst_function();
  
> 
> Thanks!
> 
> Martin
> 

 Best regards,
  -Vlad




Reply via email to