Boost logo

Boost :

Subject: Re: [boost] How to determine if a function with a given signature is declared?
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2011-05-18 01:36:05

Edward Diener-3 wrote:
> On 5/17/2011 6:06 PM, Vicente Botet wrote:
>> andrew.beck wrote:
>>> Hi,
>>> Newbie question follows...
>>> I've used BOOST_MPL_HAS_XXX_TRAIT_DEF in the past but recently needed to
>>> determine if a function was defined with a given signature. Searching
>>> boost::mpl, stackoverflow etc, I couldn't find anything to do what I
>>> needed. I've attached my solution below. Basically, I'm wondering if
>>> there
>>> is a boost::mpl solution or some other more elegant solution.
>> Maybe Type Traits Introspection on the review schedule could help yuu
>> (
> Only if the function is within a type as a member function or static
> member function.

Wow, I missed this point. For example, Boost.Thread make use of some traits
of this kind. I guess that it should be no too much work to provide the
equivalent for free functions; isn't it?


View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at