引用thisquestion,它确实具有相同的标题,但我在标准中找到了答案。我继续深入研究这个主题,并最终找到了一个示例代码,该答案不适用。让我们考虑这段代码:templatevoidfunc(T*buf);//templateItemplatevoidfunc(char(&buf)[N]);//templateIIvoidg(char(&buf)[3]){func(buf)//Error:ambiguousfunctioncall(Clang,GCC,ICC,MSVC)}根据[temp.func.order]中的偏序规则和[temp.deduct.partial],templateI