[bind10-dev] About isc::dns::Message::hasRRset() function
JINMEI Tatuya / 神明達哉
jinmei at isc.org
Tue Mar 8 09:29:57 UTC 2011
At Tue, 8 Mar 2011 15:12:21 +0800,
"wanghaidong" <wanghaidong at cnnic.cn> wrote:
> Hi Jinmei:
I'm not the author of this method, but...
> While working on resolver negative cache, I need to call
> isc::dns::Message::hasRRset() function to determine whether some
> RRset exist, but since I hold a const pointer of message, the
> function cannot be called without const-casting, It seems that this
> function does not modify any member variable, so I suggest to add
> const-qualifier to it.
...you're right, it should have been a const member function from the
beginning (hmm, cppcheck doesn't seem to point it out).
---
JINMEI, Tatuya
Internet Systems Consortium, Inc.
More information about the bind10-dev
mailing list