Make Distance::operator () and impl_distance const