Fix endless recursion within CheckClass::isConstMemberFunc() caused by incomplete/missing template declaration