Skip to main content
7 events
when toggle format what by license comment
Nov 30, 2025 at 10:01 answer added Hui timeline score: 0
Sep 6, 2025 at 11:43 comment added Vittorio Romeo @ofo: I am trying to emulate basic reflection for AoS -> SoA transformation before C++26 (see x.com/supahvee1234/status/1963403310548812237). With C++26 reflection there are much better solutions not involving pointers to members :)
Sep 6, 2025 at 5:56 comment added Weeekly @SoronelHaetir dereference a nullptr is UB, which is not allowed during constant evaluation.
Sep 6, 2025 at 5:51 answer added Weeekly timeline score: 3
Sep 6, 2025 at 5:33 comment added SoronelHaetir Couldn't you use a pointer to the type and just have it be null? (Would need to use ->* in that case), but this would not require an actual instance.
Sep 6, 2025 at 5:03 comment added ofo Not really what you're asking for, and unlikely to be practically useful (yet), but I was curious how this can be done using P2996 from C++26. I got a working example, but seems like it also requires defining some partial specialization for getting class type from a member function pointer. godbolt.org/z/zMd3cWh7z
Sep 5, 2025 at 23:51 history asked Vittorio Romeo CC BY-SA 4.0