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.

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