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

P2255R2 Type Traits To Detect References Binding To Temporaries #2534

Open
StephanTLavavej opened this issue Feb 8, 2022 · 3 comments
Open
Labels
compiler Compiler work involved cxx23 C++23 feature

Comments

@StephanTLavavej
Copy link
Member

StephanTLavavej commented Feb 8, 2022

P2255R2 Type Traits To Detect References Binding To Temporaries
LWG-3819 reference_meows_from_temporary should not use is_meowible
LWG-4045 tuple can create dangling references from tuple-like

Feature-test macro:

#define __cpp_lib_reference_from_temporary 202202L
@StephanTLavavej StephanTLavavej added the cxx23 C++23 feature label Feb 8, 2022
@StephanTLavavej StephanTLavavej added this to Available in C++23 Features via automation Feb 8, 2022
@StephanTLavavej StephanTLavavej added the compiler Compiler work involved label Feb 8, 2022
@StephanTLavavej
Copy link
Member Author

I've contacted the compiler team about getting support for this.

@StephanTLavavej StephanTLavavej moved this from Available to Blocked in C++23 Features Jul 28, 2022
@StephanTLavavej
Copy link
Member Author

  • __reference_constructs_from_temporary has been implemented in Clang 18.
  • __reference_converts_from_temporary is being implemented in Clang.

@cpplearner
Copy link
Contributor

__reference_converts_from_temporary has been implemented in Clang 19 (llvm/llvm-project@2dbe89d).

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
Projects
Status: Blocked
Development

No branches or pull requests

2 participants