-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed as not planned
Labels
libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.wontfixIssue is real, but we can't or won't fix it. Not invalidIssue is real, but we can't or won't fix it. Not invalid
Description
https://godbolt.org/z/8xojM67ev
Simplified, without <variant> : https://godbolt.org/z/KdK8n76hb
Proposed alternative, on simplified: https://godbolt.org/z/PPrPzjfb1
So instead of the internal static_assert(), I suggest moving the condition into a constraint
The static_assert() in question: https://github.com/llvm/llvm-project/blob/main/libcxx/include/variant#L1164
Metadata
Metadata
Assignees
Labels
libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.wontfixIssue is real, but we can't or won't fix it. Not invalidIssue is real, but we can't or won't fix it. Not invalid