| Issue |
174350
|
| Summary |
[libc++] `std::optional<T&>` non-conformance issues
|
| Labels |
libc++
|
| Assignees |
|
| Reporter |
smallp-o-p
|
[Godbolt example](https://godbolt.org/z/5reqEMbEf)
- The issue is that we provide `&&` and `const&&` overloads even with `T&`, for the functions in the linked example, which cause it to fail to compile, when it should be valid.
The current solution I have is to make `optional<T&>` a partial specialization as specified in the standard.
Obviously, since I'm the one that provided this implementation, I'll work on fixing it.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs