Make RangeEnumerator C++17 compliant (Generalizing the Range-Based For Loop)