id summary reporter owner description type status milestone component version severity resolution keywords cc 9444 TTI: support has_member_function on non-class types lukester_null@… Edward Diener "Hello again Would it be possible to support has_member_function on non-class types? It would help with making more generic code: {{{ BOOST_TTI_HAS_MEMBER_FUNCTION(Something) template class Test { public: static const bool value = has_member_function_Something::value; }; class Empty { }; int main(int argc, char *argv[]) { const bool intHasSomething = Test::value; // fails to compile const bool classHasSomething = Test::value; // ok return 0; } }}} Right now I use a little wrapper around BOOST_TTI_HAS_MEMBER_FUNCTION to create another metafunction that checks for class type. Something like: {{{ #define MY_HAS_MEMBER_FUNCTION(name) \ BOOST_TTI_HAS_MEMBER_FUNCTION(name) \ template, typename CV = Boost::function_types::null_tag> \ class HasMemberFunction_##name : public \ Boost::mpl::and_, has_member_function_##name >::type {}; }}} The downside of this is that it rules out using the member-function-pointer-type model. Hopefully something could be put in to the metafunction generation to do something similar and not have the downside? has_static_member_function doesn't have the restriction on class type, which is nice. Thanks in advance! Luke Elliott. " Feature Requests closed To Be Determined tti Boost 1.55.0 Not Applicable fixed