
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 (http://www.boost.org/community/review_schedule.html)
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? Best, Vicente -- View this message in context: http://boost.2283326.n4.nabble.com/How-to-determine-if-a-function-with-a-giv... Sent from the Boost - Dev mailing list archive at Nabble.com.