[all-commits] [llvm/llvm-project] d9caea: [libc++][ranges] LWG3564: `transform_view::iterato...
Xiaoyang Liu via All-commits
all-commits at lists.llvm.org
Mon Aug 12 10:31:08 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d9caea18f946390e0b458471cdc3e3252099c1cf
https://github.com/llvm/llvm-project/commit/d9caea18f946390e0b458471cdc3e3252099c1cf
Author: Xiaoyang Liu <siujoeng.lau at gmail.com>
Date: 2024-08-12 (Mon, 12 Aug 2024)
Changed paths:
M libcxx/docs/Status/Cxx23Issues.csv
M libcxx/include/__ranges/transform_view.h
M libcxx/test/std/ranges/range.adaptors/range.transform/iterator/types.pass.cpp
M libcxx/test/std/ranges/range.adaptors/range.transform/types.h
Log Message:
-----------
[libc++][ranges] LWG3564: `transform_view::iterator<true>::value_type` and `iterator_category` should use `const F&` (#91816)
## Introduction
This patch implements LWG3564:
`transform_view::iterator<true>::value_type` and `iterator_category`
should use `const F&`.
`transform_view`'s iterator currently obtained from a `const
transform_view` invoke the transformation function as `const`, but the
`value_type` and `iterator_category` determination uses non-`const`
`F&`.
## Reference
-
[[range.transform.iterator]](https://eel.is/c++draft/range.transform.iterator)
- [LWG3564](https://cplusplus.github.io/LWG/issue3564)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list