diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-03-29 22:16:55 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-03-30 00:06:25 +0100 |
commit | 31a909712014b75fc6ae2ca5eaa425f218bb5f32 (patch) | |
tree | 21d654fbcbcaf03eed0bc8422388f48154714d2b /gcc/range-op-float.cc | |
parent | 14f50ba054079eccf9ac49997b92793e2a87b13c (diff) | |
download | gcc-31a909712014b75fc6ae2ca5eaa425f218bb5f32.zip gcc-31a909712014b75fc6ae2ca5eaa425f218bb5f32.tar.gz gcc-31a909712014b75fc6ae2ca5eaa425f218bb5f32.tar.bz2 |
libstdc++: Use std::remove_cv_t in std::optional::transform [PR109340]
We need to strip cv-qualifiers from the result of the callable passed to
std::optional::transform.
For std::expected::transform and std::expected::transform_error I
noticed we were stripping cv-qualifiers but were also incorrectly
stripping references.
libstdc++-v3/ChangeLog:
PR libstdc++/109340
* include/std/expected (expected::transform): Use
std::remove_cv_t instead of std::remove_cvref_t.
(expected::transform_error): Likewise.
(expected<cv void, E>::transform): Likewise.
(expected<cv void, E>::transform_error): Likewise.
* include/std/optional (transform): Use std::remove_cv_t.
* testsuite/20_util/optional/monadic/pr109340.cc: New test.
Diffstat (limited to 'gcc/range-op-float.cc')
0 files changed, 0 insertions, 0 deletions