Boost logo

Boost :

Subject: Re: [boost] Identifying members
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2008-10-08 22:25:45


On Wed, Oct 8, 2008 at 22:15, coppro <coppro_at_[hidden]> wrote:
> In C++ it is possible to determine whether there exists a member of a
> class of a specified type (including member functions) with a given
> name. As far as I know, there exists no such functionality in Boost. Why
> is this? It can easily be implemented as a traits class for a specific
> identifier/signature, which can then be made into a macro.
>

Sounds like BOOST_MPL_HAS_XXX_TRAIT_DEF :
http://www.boost.org/doc/libs/1_36_0/libs/mpl/doc/refmanual/has-xxx-trait-def.html

HTH,
~ Scott


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