From: Alex Rousskov Date: Mon, 21 Feb 2011 05:06:20 +0000 (-0700) Subject: Allow constant pointers to non-constant HttpMsgs. X-Git-Tag: take06~27^2~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44ab1ba28fac6e0899c5d9ce24312b77320dd743;p=thirdparty%2Fsquid.git Allow constant pointers to non-constant HttpMsgs. --- diff --git a/src/HttpMsg.h b/src/HttpMsg.h index 25e8928117..12b8c7484e 100644 --- a/src/HttpMsg.h +++ b/src/HttpMsg.h @@ -220,8 +220,7 @@ public: const Msg &operator *() const { return *msg; } Msg *operator ->() { return msg; } const Msg *operator ->() const { return msg; } - operator Msg *() { return msg; } - operator const Msg *() const { return msg; } + operator Msg *() const { return msg; } // add more as needed /// public access for HttpMsgPointerT copying and assignment; avoid