[prev in list] [next in list] [prev in thread] [next in thread]
List: squid-dev
Subject: MEMPROXY_CLASS and virtual methods and cbdata class's
From: Robert Collins <robertc () robertcollins ! net>
Date: 2006-05-27 13:04:57
Message-ID: 1148735098.31431.9.camel () localhost ! localdomain
[Download RAW message or body]
saw this comment today..
// reset should not reset the protocol; could have made protoPrefix a
// virtual function instead, but it is not clear whether virtual
methods
// are allowed with MEMPROXY_CLASS() and whether some cbdata void*
// conversions are not going to kill virtual tables
virtual methods work file with MEMPROXY_CLASS.
casting to void * always gets the base address of the struct based on
the type that is being looked at AIUI.
I.e. if you have an HttpReply and cast to void * you might get a
different address than casting a HttpMsg to void * - but in practice
they are only ever different if there is multiple inheritance in place.
Rob
--=20
GPG key available at: <http://www.robertcollins.net/keys.txt>.
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic