You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just checked and it looks like the status page does indeed reflect this, as of clang-9 it has been implemented. I don't have permission to close issues otherwise I would :p
@cjdb
This feature was introduced way back in C++20 I believe and should have been implemented in libcxx as well, I see several instances of this being used, did you mean to highlight any specific places that may have been missed out?
@Rajveer100 I noticed that it is not implemented in std::optional yesterday. There may be a reason for it though as the new definitions including explicit(bool) were detailed in the synopsis.
@cjdb This feature was introduced way back in C++20 I believe and should have been implemented in libcxx as well, I see several instances of this being used, did you mean to highlight any specific places that may have been missed out?
libc++ is not C++20 feature complete, so it being introduced in C++20 doesn't indicate very much. This issue is open because the libc++ status page has not marked it as completed, and thus we either need to implement it or mark it as completed in our status page.
Activity
llvmbot commentedon Jul 25, 2024
@llvm/issue-subscribers-c-20
Author: Christopher Di Bella (cjdb)
Details
**Link:** https://wg21.link/p0892r2jkarns275 commentedon Jul 31, 2024
Going to take a stab at this :)
jkarns275 commentedon Jul 31, 2024
This has already been implemented: https://github.com/llvm/llvm-project/blob/main/clang/lib/Parse/ParseDecl.cpp#L4428
cjdb commentedon Aug 1, 2024
Thanks! Can you please update the status page and close this issue?
jkarns275 commentedon Aug 1, 2024
I just checked and it looks like the status page does indeed reflect this, as of clang-9 it has been implemented. I don't have permission to close issues otherwise I would :p
cjdb commentedon Aug 1, 2024
This issue is tracking the libc++ component of this paper, not Clang's.
jkarns275 commentedon Aug 1, 2024
I see - apologies, I'm not very familiar with things around here :p. I will indeed try to make these changes then.
Rajveer100 commentedon Aug 1, 2024
@cjdb
This feature was introduced way back in C++20 I believe and should have been implemented in
libcxxas well, I see several instances of this being used, did you mean to highlight any specific places that may have been missed out?jkarns275 commentedon Aug 1, 2024
@Rajveer100 I noticed that it is not implemented in
std::optionalyesterday. There may be a reason for it though as the new definitions includingexplicit(bool)were detailed in the synopsis.cjdb commentedon Aug 1, 2024
libc++ is not C++20 feature complete, so it being introduced in C++20 doesn't indicate very much. This issue is open because the libc++ status page has not marked it as completed, and thus we either need to implement it or mark it as completed in our status page.
philnik777 commentedon Aug 1, 2024
I think this should just be marked as nothing to do, since the paper basically just replaces implementation magic with a language feature.
cjdb commentedon Aug 1, 2024
That's my hope too. I didn't read the library section closely enough to confirm that it only changes things in C++17.
[-]Implement 'P0892R2 explicit(bool)'[/-][+]P0892R2: explicit(bool)[/+]ldionne commentedon Aug 29, 2024
Closing as Nothing To Do since this indeed doesn't require any changes in the library.