21 Feb
2008
21 Feb
'08
11:52 a.m.
Ovanes Markarian wrote:
For me this will clearly fail, since T::xxx is not a type but an integer member of the struct. If xxx would be a member function it would not be a type as well, so has_xxx can only determine if there is some nested class type or a typedef within the inspected type. Is this correct?
As I understand it, this traits class is intended to identify nested types only - certainly that's the only use case I've used it for. HTH, John.