fix compilation problem with range v3 0.11 in a backwards compatible manner -- see problem here, and reproducer here.