I have seen this question which allows one to check for the existence of a member function, but I\'m trying to find out whether a class has a member
Try this
template struct Void { typedef void type; }; template struct has_bar { enum { value = 0 }; }; template struct has_bar::type > { enum { value = 1 }; };