P3471R4 Standard Library Hardening
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 11.2k
- Forks
- 1.7k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 22
Description
WG21-P3471R4 Standard Library Hardening
WG21-P3697R1 Minor Additions To Standard Library Hardening
WG21-P3878R1 Standard Library Hardening Should Not Use The 'Observe' Semantic
Feature-test macros (note that they're a mix of 202502L and 202506L):
#define __cpp_lib_hardened_array 202502L
#define __cpp_lib_hardened_basic_stacktrace 202506L
#define __cpp_lib_hardened_basic_string 202502L
#define __cpp_lib_hardened_basic_string_view 202502L
#define __cpp_lib_hardened_bitset 202502L
#define __cpp_lib_hardened_common_iterator 202506L
#define __cpp_lib_hardened_counted_iterator 202506L
#define __cpp_lib_hardened_deque 202502L
#define __cpp_lib_hardened_expected 202502L
#define __cpp_lib_hardened_forward_list 202502L
#define __cpp_lib_hardened_inplace_vector 202502L
#define __cpp_lib_hardened_list 202502L
#define __cpp_lib_hardened_mdspan 202502L
#define __cpp_lib_hardened_optional 202502L
#define __cpp_lib_hardened_shared_ptr_array 202506L
#define __cpp_lib_hardened_span 202502L
#define __cpp_lib_hardened_valarray 202502L
#define __cpp_lib_hardened_vector 202502L
#define __cpp_lib_hardened_view_interface 202506L
- This has been substantially implemented by #5274 and #5650, but R4 was specified to use contracts, so this feature is blocked by #5286.
Note: We are not yet accepting PRs for C++26 features.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the contracts work in #5286, then review the substantially implemented portions in #5274 and #5650. Use the listed hardened feature-test macros and the WG21 proposals as the scope; completion depends on implementing the contracts-based C++26 feature, but the issue notes that pull requests are not currently being accepted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100