Boost logo

Boost :

Subject: Re: [boost] Is there interest in a library for testing existence of a function member of class?
From: Vladimir Batov (vb.mail.247_at_[hidden])
Date: 2014-11-24 02:57:00


胡维 wrote
>>
>> Has anyone ever worked out how to do this without having to specify
>> the type? E.g. with BOOST_TTI_HAS_MEMBER_DATA I need to write
>> something like
>>
>> has_member_data_fieldname
> <int ClasdName::*>
> ::value;

I had that same need and could not find anything suitable... had to come up
with my own (sort of). You might be interested in "is_callable" trait and
BOOST_HAS_MEMBER macro deployment in my boost/convert. Right now it's in the
development branch only. https://github.com/boostorg/convert/tree/develop

--
View this message in context: http://boost.2283326.n4.nabble.com/Is-there-interest-in-a-library-for-testing-existence-of-a-function-member-of-class-tp4669388p4669413.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

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