ryanhaining / cppitertools

Implementation of python itertools and builtin iteration functions for C++17
https://twitter.com/cppitertools
BSD 2-Clause "Simplified" License
1.37k stars 115 forks source link

Fix all `reference` type aliases to match the return type of operator* exactly. #88

Open ryanhaining opened 2 years ago

ryanhaining commented 2 years ago

Recent libc++ checks that an iterators reference type matches its operator*'s return type. This isn't the case across itertools and must be addressed. Testing with https://github.com/llvm/llvm-project/commit/36c746ca2d5b325a7ac64135c1ff8774c06ab34c