Adjustments for compatibility with commit https://github.com/boostorg/range/commit/48dfb6804598a1890198b0ecde48e4a0d1812ea1.