更新时间:2023-02-16 19:24:39
这不是一个重载,它是一个专业化。它们是不同的机制(事实上混合两者可能导致混乱,因为超载在专业化之前被解决 - 参见Sutter's Mill文章例如: http://www.gotw.ca/publications/mill17.htm )。
It's not an overload, it's a specialization. They are different mechanisms (in fact mixing the two can lead to confusion, because overloads are resolved before specializations are considered -- see this Sutter's Mill article for example: http://www.gotw.ca/publications/mill17.htm).