Closed fan-chao closed 1 year ago
Hi, 下面这一页(P32)的函数f(A)和f(int)输出的日志感觉不匹配,是不是反了?
Hello,
实参类型为A,f(A)是No conversions,属于标准转换,在没有自定义转换operator int()时,f(int)是无法匹配到的。
A
f(A)
operator int()
f(int)
所以这里无误喔~
Hello, 实参类型为A,f(A)是No conversions,属于标准转换,在没有自定义转换operator int()时,f(int)是无法匹配到的。 所以这里无误喔~
ok, 那我理解错了。
Hi, 下面这一页(P32)的函数f(A)和f(int)输出的日志感觉不匹配,是不是反了?