On 01/05/2010 10:58 AM, Vincent van Ravesteijn - TNW wrote:
I'd also want to figure out some way to allow just the
DispatchResult member to be modified, even when FuncRequest
is const.
You mean you want to declare it "mutable" ?
That is one possibility, though the way Tomasso had done it we just had
(more or less):
DispatchResult & FuncRequest::result() { return result_; }
and making the member mutable doesn't (I think) allow us to make this
const. What you would have to do is something like:
DispatchResult & FuncRequest::result() const { return
const_cast<DispatchResult &>(result_); }
But I don't know if even that works.
rh