fix Issue 10592 - Regression of overloaded template function