class Foo  
  {  
  private:  
    mutable bool done_;  
  public:  
    void doSomething() const { ...; done_ = true; }  
  };