[all-commits] [llvm/llvm-project] f03430: [libc++] LWG3672: `common_iterator::operator->()` ...
Xiaoyang Liu via All-commits
all-commits at lists.llvm.org
Thu May 16 10:25:26 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f03430f5e37e8eb64878dc538b05210adea2d80f
https://github.com/llvm/llvm-project/commit/f03430f5e37e8eb64878dc538b05210adea2d80f
Author: Xiaoyang Liu <siujoeng.lau at gmail.com>
Date: 2024-05-16 (Thu, 16 May 2024)
Changed paths:
M libcxx/docs/Status/Cxx23Issues.csv
M libcxx/include/__iterator/common_iterator.h
M libcxx/test/std/iterators/predef.iterators/iterators.common/arrow.pass.cpp
Log Message:
-----------
[libc++] LWG3672: `common_iterator::operator->()` should return by value (#87899)
## Abstract
This pull request implements LWG3672: `common_iterator::operator->()`
should return by value. The current implementation specifies that this
function should return the underlying pointer by reference (`T*
const&`), but it would be more intuitive to return it by value (`T*`).
## Reference
- [Draft C++ Standard:
[common.iter.access]](https://eel.is/c++draft/common.iter.access)
- [LWG3672](https://cplusplus.github.io/LWG/issue3672)
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