Subject: Re: [boost] has_member_fnc?
From: Edward Diener (eldiener_at_[hidden])
Date: 2012-03-17 09:40:17
On 3/16/2012 12:28 PM, Nathan Ridge wrote:
>> It seems c++11 has a new way to spell enable_if, and this can be used to
>> implement has_member_fnc, as in this example:
>> I wonder if has_member_fnc would be a good addition to boost?
> Does Boost.TTI not already have a facility to test for the existence of a
> member function?
Yes, TTI does have this facility, generated by a macro. But using C++11
features is definitely an improvement when the compiler supports it.
I need to look at C++11 more closely as I work to get TTI ready for Boost.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk