llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.82k stars 11.46k forks source link

P0466R5: Layout-compatibility and Pointer-interconvertibility Traits #100013

Open cjdb opened 1 month ago

cjdb commented 1 month ago

Link: https://wg21.link/p0466r5

llvmbot commented 1 month ago

@llvm/issue-subscribers-c-20

Author: Christopher Di Bella (cjdb)

llvmbot commented 1 month ago

@llvm/issue-subscribers-clang-frontend

Author: Christopher Di Bella (cjdb)

**Link:** https://wg21.link/p0466r5
cor3ntin commented 1 month ago

Clang implemented

https://clang.llvm.org/docs/LanguageExtensions.html#type-trait-primitives

For this paper.

is_corresponding_member and is_pointer_interconvertible_with_class will also need compiler support but clang has no support for that yet.