Skip to content

P2255R2: A type trait to detect reference binding to temporary #105180

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

Open
ldionne opened this issue Aug 20, 2024 · 1 comment
Open

P2255R2: A type trait to detect reference binding to temporary #105180

ldionne opened this issue Aug 20, 2024 · 1 comment
Assignees
Labels
c++23 libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. wg21 paper Issues representing the implementation of a WG21 paper

Comments

@ldionne
Copy link
Member

ldionne commented Aug 20, 2024

Link: https://wg21.link/P2255R2

@ldionne ldionne added c++23 libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. wg21 paper Issues representing the implementation of a WG21 paper labels Aug 20, 2024
@H-G-Hristov
Copy link
Contributor

H-G-Hristov commented Feb 24, 2025

It looks like the required builtins have been implemented:

__reference_constructs_from_temporary added in https://reviews.llvm.org/D135341 / 8f3b0b4

__reference_converts_from_temporary added in #91199 / 2dbe89d

Issue: #114344

__has_builtin() issues fixed in 75611ca

H-G-Hristov added a commit to H-G-Hristov/llvm-project that referenced this issue Feb 25, 2025
…nding to temporary"

Implements partially: P2255R2: A type trait to detect reference binding to temporary
llvm#105180

https://eel.is/c++draft/meta.type.synop
https://eel.is/c++draft/meta.unary.prop

Implented type traits:
- [x] `reference_constructs_from_temporary`
- [x] `reference_converts_from_temporary`
H-G-Hristov added a commit to H-G-Hristov/llvm-project that referenced this issue Feb 25, 2025
…nding to temporary"

Implements partially: P2255R2: A type trait to detect reference binding to temporary
llvm#105180

https://eel.is/c++draft/meta.type.synop
https://eel.is/c++draft/meta.unary.prop

Implented type traits:
- [x] `reference_constructs_from_temporary`
- [x] `reference_converts_from_temporary`
H-G-Hristov added a commit to H-G-Hristov/llvm-project that referenced this issue Feb 25, 2025
…nding to temporary"

Implements partially: P2255R2: A type trait to detect reference binding to temporary
llvm#105180

https://eel.is/c++draft/meta.type.synop
https://eel.is/c++draft/meta.unary.prop

Implented type traits:
- [x] `reference_constructs_from_temporary`
- [x] `reference_converts_from_temporary`
H-G-Hristov added a commit to H-G-Hristov/llvm-project that referenced this issue Feb 25, 2025
…nding to temporary"

Implements partially: P2255R2: A type trait to detect reference binding to temporary
llvm#105180

https://eel.is/c++draft/meta.type.synop
https://eel.is/c++draft/meta.unary.prop

Implented type traits:
- [x] `reference_constructs_from_temporary`
- [x] `reference_converts_from_temporary`
H-G-Hristov added a commit to H-G-Hristov/llvm-project that referenced this issue Feb 25, 2025
…nding to temporary"

Implements partially: P2255R2: A type trait to detect reference binding to temporary
llvm#105180

https://eel.is/c++draft/meta.type.synop
https://eel.is/c++draft/meta.unary.prop

Implented type traits:
- [x] `reference_constructs_from_temporary`
- [x] `reference_converts_from_temporary`
H-G-Hristov added a commit to H-G-Hristov/llvm-project that referenced this issue Feb 25, 2025
…nding to temporary"

Implements partially: P2255R2: A type trait to detect reference binding to temporary
llvm#105180

https://eel.is/c++draft/meta.type.synop
https://eel.is/c++draft/meta.unary.prop

Implented type traits:
- [x] `reference_constructs_from_temporary`
- [x] `reference_converts_from_temporary`
philnik777 pushed a commit that referenced this issue Mar 8, 2025
…nding to temporary" (#128649)

Implements partially: [P2255R2: A type trait to detect reference binding
to temporary](https://wg21.link/P2255R2)
Issue: #105180

https://eel.is/c++draft/meta.type.synop
https://eel.is/c++draft/meta.unary.prop

Implented type traits:
- [x] `reference_constructs_from_temporary`
- [x] `reference_converts_from_temporary`

Closes #129049

Minor drive-by tweak to `std::is_implicit_lifetime` tests.

---------

Co-authored-by: Hristo Hristov <[email protected]>
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this issue Mar 8, 2025
…eference binding to temporary" (#128649)

Implements partially: [P2255R2: A type trait to detect reference binding
to temporary](https://wg21.link/P2255R2)
Issue: llvm/llvm-project#105180

https://eel.is/c++draft/meta.type.synop
https://eel.is/c++draft/meta.unary.prop

Implented type traits:
- [x] `reference_constructs_from_temporary`
- [x] `reference_converts_from_temporary`

Closes #129049

Minor drive-by tweak to `std::is_implicit_lifetime` tests.

---------

Co-authored-by: Hristo Hristov <[email protected]>
@Zingam Zingam self-assigned this Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++23 libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. wg21 paper Issues representing the implementation of a WG21 paper
Projects
Status: Todo
Development

No branches or pull requests

3 participants