TONGARI J wrote:
2014-11-22 17:36 GMT+08:00 ??
: Hi, I am looking for how to test if a function member of class exist or not in compile time.I did not find a solution by google so I wrote a piece of code for it.Please let me know if it's already in boost. :)
Yes, it's in Boost.TTI: http://tinyurl.com/k3y5x8l
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