LWG4304: `std::optional<NonReturnable&>` is ill-formed due to `value_or`
Open
c++26
libc++
lwg-issue
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
**Link:** https://wg21.link/LWG4304
Contributor guide
Research direction
Start with LWG4304 at the linked wg21.info page, then locate the std::optional and value_or implementation in llvm-project. Determine the required behavior for NonReturnable and verify the result with the relevant optional tests; done means the type is well-formed and the behavior matches the LWG resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100