Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P1169R4 static operator() #2954

Closed
frederick-vs-ja opened this issue Jul 27, 2022 · 3 comments · Fixed by #4053
Closed

P1169R4 static operator() #2954

frederick-vs-ja opened this issue Jul 27, 2022 · 3 comments · Fixed by #4053
Labels
compiler Compiler work involved cxx23 C++23 feature fixed Something works now, yay!

Comments

@frederick-vs-ja
Copy link
Contributor

frederick-vs-ja commented Jul 27, 2022

P1169R4 static operator()

In addition to core language changes, the paper also requires extending deduction guides for function and packaged_task to deduce from classes with static operator().

No library feature-test macro.

The library change is meaningless and not testable as long as the core change is not implemented. Once the compilers have implemented this feature, I think we can change some CPOs, niebloids, and internally used lambdas to use static operator().

@CaseyCarter CaseyCarter added the cxx23 C++23 feature label Jul 27, 2022
@StephanTLavavej StephanTLavavej added the compiler Compiler work involved label Aug 1, 2022
@CaseyCarter
Copy link
Member

FYI, Clang 16 has implemented this feature.

@StephanTLavavej
Copy link
Member

I'm working on this.

@StephanTLavavej StephanTLavavej changed the title P1169R4 static operator() P1169R4 static operator() Sep 26, 2023
@StephanTLavavej StephanTLavavej added the fixed Something works now, yay! label Oct 4, 2023
@StephanTLavavej
Copy link
Member

EDG now supports this as Future Technology (VS-PR-532076) so we're just waiting for MSVC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Compiler work involved cxx23 C++23 feature fixed Something works now, yay!
Projects
Development

Successfully merging a pull request may close this issue.

3 participants