
22 Mar
2010
22 Mar
'10
12:33 p.m.
On Sun, Mar 21, 2010 at 2:43 PM, Ingo Loehken <Ingo.Loehken@boc-eu.com> wrote:
The only thing you can determine, is, if the type (class) of the last declaration is the one you expected. That means if you know that the first declaration of your function comes in from baseT, you can determine if a deriving class overwrites that decl, and that is exactly what a deriving class needs to do to overload a virtual function.
I myself use this pattern to determine, if a type is an XPCOM Interface or not. Perhaps you'd like to check for something similiar.
If interested in details, let me know.
Yes, I am interested. Can you please point me to some code that programs this pattern? Thanks a lot. Lorenzo