Boost logo

Boost :

Subject: Re: [boost] [mpl] has_function
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-03-21 09:44:13


Lorenzo Caminiti wrote:
> Hello all,
>
> Is there a way I can check if a class has a given member function
> using metaprogramming?
>
> What I need is to check at compile-time if a function is overriding a
> virtual function or not. In the example below, z::f is overriding x::f
> but not y::f (which does not exist) and the compiler knows that -- is
> there a way I can extract that information from the compiler?
>
Well, there is an introspection library in the vault but I think I
didn't took this case into account.
Worth a try tough

-- 
___________________________________________
Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk