你把你的友元函数名修改成distance_new因为那个名字在std,名字空间里面已经用了
distance(_InIt _First, _InIt _Last)标准库里面也有个distance()函数,调到该函数执行了