fix Issue 11993 - typeof(this) in constraint of member function template should reflect method qualifier