Subject: Re: [boost] [mpl] has_function
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2010-03-22 08:33:02
On Sun, Mar 21, 2010 at 2:43 PM, Ingo Loehken <Ingo.Loehken_at_[hidden]> 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
> 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.