summaryrefslogtreecommitdiff
path: root/libjava/classpath/java/util/BitSet.java
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2025-11-19 19:04:05 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2025-11-21 15:30:50 +0000
commit1725567dfce807e6395d726057ccc85b47a7f3c1 (patch)
tree774d04f717e09f1fb663f8cba949a0cf49fbc4ed /libjava/classpath/java/util/BitSet.java
parent0d4ab66aaf1f2ade8b6deab07f37b3137f5f5763 (diff)
libstdc++: Implement LWG 4406 and LWG 3424 for std::optional and std::expected
This adjusts the return statements of optional::value_or and expected::value_or to not perform explicit conversions, so that the actual conversion performed matches the requirements expressed in the Mandates: elements (LWG 4406). Also adjust the return types to remove cv-qualifiers (LWG 3424). libstdc++-v3/ChangeLog: * include/std/expected (expected::value_or): Use remove_cv_t for the return type. Do not use static_cast for return statement. Adjust static_assert conditions to match return statements. * include/std/optional (optional::value_or): Likewise. (optional<T&>::value_or): Likewise. Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com>
Diffstat (limited to 'libjava/classpath/java/util/BitSet.java')
0 files changed, 0 insertions, 0 deletions