
17 Mar
2012
17 Mar
'12
1:40 p.m.
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. Eddie Diener