bloomberg / clang-p2996

Experimental clang support for WG21 P2996 (Reflection).
https://github.com/bloomberg/clang-p2996/tree/p2996/P2996.md
51 stars 8 forks source link

Implement object_of metafunction #70

Closed katzdm closed 2 months ago

katzdm commented 2 months ago

Added in P2996R4.

katzdm commented 2 months ago

Ensuring that the following holds should also be a part of this work:

int x;
static_assert(std::meta::reflect_object(x) != ^x);
katzdm commented 2 months ago

Implemented by 546c29f.