Make transform iterator save underlying iterator category.#91
Make transform iterator save underlying iterator category.#91gogagum wants to merge 3 commits intoboostorg:developfrom
Conversation
gogagum
commented
Apr 22, 2025
- operator[] in iterator facade now returns a reference, because its return type must be the same as dereference type for random_access_iterator concept.
- add tests for categories checks.
- change trait to determine transform_iterator reference type.
- operator[] in iterator facade now returns a reference, because its return type must be the same as dereference type for random_access_iterator concept. - add tests for categories checks. - change trait to determine transform_iterator reference type.
|
I'm not sure what problem you're solving, but the reference type may not be an actual reference if the transform function returns an rvalue. |
cec0cbd to
cfbaa35
Compare
cfbaa35 to
d47f252
Compare
|
I don't think I will accept these changes as they change the behavior of If you want And finally, I'm not sure why you're changing the iterator category of the |